The API is indeed a bit "English-centric". The documentation for 
[strutils.formatFloat()](https://nim-lang.org/docs/strutils.html#formatFloat%2Cfloat%2CFloatFormatMode%2Crange%5B%5D%2Cchar)
 allows the user to specify the separator between the integer and rational part 
of a number via the `decimalSep` parameter.

While English speaking countries use the format `12,345.78`, Germans switch the 
comma and period (not just in the context of money), i.e. `12.345,78`. It 
shouldn't be hard to make the thousand-separator configurable as well. Though 
@xigoi's example does not separate a number by steps of a thousand consistently.

Other languages and cultures might use entirely different coventions to format 
an amount of money. This makes it hard to create one proc that covers all of 
them.

Reply via email to