Extension to convert a number to decimal format

Hello​:wave:
I made a simple extension to convert a number to decimal format

Download link:
FormatNumbers.aix (5.2 KB)

5 Likes

I think you are referring to “thousand separator” instead of “decimal format”. Because in some countries, fractions in numbers are separated from integers with comma (,) instead of period, (.) so both 2561.523 and 2561,523 can be a valid decimal number. But if we try adding a thousand separator to the 2561,523 with commas, it may end up with “2,561,523”, so you can’t never know which comma is the decimal separator and which one is the thousand separator.

In short, you may want to consider adding a new argument to the blocks which allow changing the separator and/or renaming the block to “SeparateThousand” or something.

WORK 100% WITH APP INVENTOR AND KODULAR
NUMBER SEPARATOR
NEW