comma package:formatn

Format with US-style commas
>>> comma (Just 3) 1234567
"1,230,000"
Format using comma separators for numbers above 1,000 but below 1 million, otherwise use prec style.
>>> commaPrec (Just 3) 1234
"1,230"

>>> commaPrec (Just 3) 1234567
"1.23e6"
CommaStyle above a thousand but below a million, DecimalStyle between 0.001 and a thousand and ExponentStyle outside this range.
comma format for a SigFig
1,000 1 0.001