I am trying to print a double like this:
val Double = 12591294124.125124
printf("%,2f", Double)
with the wanted output: 12.591.294.124,13
Oddly enough, when using "%,2f" it doesn't round to 2 decimal places, but prints 6 like this: 12.591.294.124,125124
Is there a way to use the ,
as decimal seperator and round to 2 digits?
thanks!