# How do you add number abbreviations

**URL:** <https://community.thunkable.com/t/how-do-you-add-number-abbreviations/2060164>\
**Category:** Questions about Thunkable X\
**Created:** [September 27, 2022, 2:16pm UTC](https://community.thunkable.com/t/how-do-you-add-number-abbreviations/2060164 "2022-09-27T14:16:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thewrongcode101](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@thewrongcode101](https://community.thunkable.com/u/thewrongcode101)\
**Post date:** [September 27, 2022, 2:16pm UTC](https://community.thunkable.com/t/how-do-you-add-number-abbreviations/2060164/1 "2022-09-27T14:16:55Z")

</div>

basically, I’m working on an app and I want to be able to have it so that instead of numbers being like 10000 it becomes 10k.

so if a value was 13,382 it would turn into 13.38k  
or if it was 372,281 it would turn into 372.28k  
or if it was 1,291,291 it would turn into 1.29m

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 27, 2022, 2:45pm UTC](https://community.thunkable.com/t/how-do-you-add-number-abbreviations/2060164/2 "2022-09-27T14:45:53Z")

</div>

You’re going to need some IF blocks. If num \< 1000 then display num, else if num \< 1000000 then display join round(num/1000) & “k”, else display join round (num/1000000) & “m”

---

<div class="post-metadata">

**Author:** ![thewrongcode101](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@thewrongcode101](https://community.thunkable.com/u/thewrongcode101)\
**Post date:** [September 27, 2022, 4:16pm UTC](https://community.thunkable.com/t/how-do-you-add-number-abbreviations/2060164/3 "2022-09-27T16:16:22Z")

</div>

Thank you. But is there any way to make it more exact? Like 5.2k or something?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 27, 2022, 4:33pm UTC](https://community.thunkable.com/t/how-do-you-add-number-abbreviations/2060164/4 "2022-09-27T16:33:45Z")

</div>

Sure! You can use any divisor you want. So if the number is in the thousands, divide by 1000 and round to one decimal place using this block:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/d/ed993a57e6ac189c490a356a96afc5c9f18868f8.png)

If you need more help, post a screenshot of the blocks you’ve tried and explain the result and I can help you further.

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [September 27, 2022, 8:46pm UTC](https://community.thunkable.com/t/how-do-you-add-number-abbreviations/2060164/5 "2022-09-27T20:46:03Z")

</div>

sorry, i couldn’t resist the challenge!  
here’s a demo to call a standard routine for abbreviating a number all the way to the billions with 2 decimal places for the abbreviation estimates:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/0/e08f921727664d33dbd321afdcaa34fd0747e8ab.png)

here’s the code:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/c/2c2e1d00176e15f192e9e3ba0df559a50b2f07b0.png)

and here’s the project link  
[https://x.thunkable.com/projects/633341745316150557381fa3/4c6410d9-af01-43ff-ae29-7eed4bf7c004/blocks](https://x.thunkable.com/projects/633341745316150557381fa3/4c6410d9-af01-43ff-ae29-7eed4bf7c004/blocks)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [December 26, 2022, 8:46pm UTC](https://community.thunkable.com/t/how-do-you-add-number-abbreviations/2060164/6 "2022-12-26T20:46:26Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
