Thousand seperator and desimal separator - script

Åsmund shared this question 1 year ago
Answered

I have a glider that changes a number and show it as a text.

Is it possible with script or something that the number shows with thousand separator, so instead of 2000000 it shows 2 000 000? And instead of 0.02 it shows 0,02 with comma?

Comments (3)

photo
1

I havent looked at it yet, but I think it might be possible with a combination of IndexOf, Length and Take command. So I posted the question in case someone already have done it.

photo
2

here an example. you can do it for decimal with indexof and take. split the unicode list in dot and convert in coma

Files: foro.ggb
photo
1

Thanks! I'm not sure if I will manage the decimal thing, but I will give it a try and post here if not successful.

photo
© 2020 International GeoGebra Institute