thousands separator

400 views
Skip to first unread message
Assigned to scottfr...@gmail.com by me

produsof...@gmail.com

unread,
Dec 6, 2013, 4:44:09 PM12/6/13
to mitappinv...@googlegroups.com
Hi, Does anyone know how to add thousands separators and decimal to a label in AI2? 23599 eg the idea is that it looks like 23,500

I appreciate any help ....

Taifun

unread,
Dec 6, 2013, 5:07:59 PM12/6/13
to mitappinv...@googlegroups.com
you can "translate" this AI1 solution to AI2 http://puravidaapps.com/snippets.php#thousand
Taifun

Scott Ferguson

unread,
Dec 6, 2013, 5:29:05 PM12/6/13
to mitappinv...@googlegroups.com

boban...@gmail.com

unread,
Mar 15, 2014, 11:04:32 AM3/15/14
to mitappinv...@googlegroups.com

Taifun

unread,
Mar 15, 2014, 11:10:35 AM3/15/14
to mitappinv...@googlegroups.com, boban...@gmail.com
looks fine! thank you!
however now in AI2 we have local variables, therefore I suggest to replace the global variable result by a local variable...
Taifun

Ariel Armijo

unread,
Aug 1, 2014, 10:51:05 PM8/1/14
to mitappinv...@googlegroups.com

I use this blocks for  thousands separator 

Scott Ferguson

unread,
Aug 6, 2014, 11:22:13 PM8/6/14
to mitappinv...@googlegroups.com
Nice solution, tumorlike :)
---
sf

Ghica

unread,
Aug 7, 2014, 12:14:18 PM8/7/14
to mitappinv...@googlegroups.com

There is just one small problem, the thousands separator might be . or , depending on the country your phone lives in (And each has been used in the solutions above!). Here is a trick to figure out what it is:

The "random fraction" is a number between 0 and 1. If you see a , then the thousands separator will be a . and the other way around.
Cheers, Ghica.
Reply all
Reply to author
Forward
0 new messages