This simple package formats numbers as pretty strings. It is flexible enough to deal with different number of decimals, different thousand separators and diffetent decimal separator.
Format a float number as a pretty string. The four arguments are: number of decimals, thousand separator, decimal separator and the float number itself. >>> formatInt 1 "," "." 0 "0.0"
>>> formatInt 1 "," "." 1234567890
"1,234,567,890.0"
Format a float number as a pretty string. The four arguments are: number of decimals, thousand separator, decimal separator and the float number itself.