|
From: Emanuel B. <in...@da...> - 2022-06-23 06:34:11
|
Ethan Merritt wrote:
> A correction, sorry. I meant to say the standard "C" local
> does not use a special character for the thousands
> separator. That is the default for gnuplot. en_US locale
> uses a comma. fr_FR uses a space.
>
> set decimal locale 'fr_FR.UTF-8'
> FR = sprintf("%'.2f", A)
> print "FR format is ", FR
> Output:
>
> decimal_sign in locale is .
> decimal_sign in locale is ,
> US format is 1,234,567.89
> FR format is 1 234 567,89
Thanks for the explanation and example, I get it, but I'm not
getting it to work.
First, for me it says "decimal sign in locale is ." after
I set it to French; and after that it's still 14000000, i.e.
no grouping.
14M would be optimal IMO but 14 000 000 much better than
14000000 and "good enough for government work" I guess.
--
underground experts united
https://dataswamp.org/~incal
|