2017년 7월 11일 화요일

RE thousands separator


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 ....

--
you can "translate" this AI1 solution to AI2 http://puravidaapps.com/snippets.php#thousand

--
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...

--

I use this blocks for  thousands separator 

--
Nice solution, tumorlike :)

--
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.

--

댓글 없음:

댓글 쓰기