Formatting a decimal number

How do I format the number like this:
95263.51

with decimal point (comma):
95.263,51

or even with a decimal point (which is more common)
95,263.51

:?

+3


source to share


1 answer


Found a way to do this
using the Number package:
iex> Number.Delimit.number_to_delimited(98765432.98, delimiter: ".",separator: ",") "98 765 432,98"



+1


source







All Articles