This simple package formats Float numbers as pretty strings. It is
flexible enough to deal with different number of decimals, different thousand
separators and different decimal separator.
Int numbers?Just convert them to Float before passing them to format:
>>> import FormatNumber.Locales exposing (usLocale)
>>> format usLocale (toFloat 1234)
"1,234.00"
>>> import FormatNumber.Locales exposing (usLocale)
>>> format { usLocale | decimals = Exact 0 } <| toFloat 1234
"1,234"
Format a float number as a pretty string: