How can I submit an issue on your package? Probably cause I was looking at a branch. Posted this issue on Formatting.jl as well. [edited: now closed]
In any case:
julia> s = format(111222333444555666, commas=true, precision = 2 , stripzeros = true )
"111,222,333,444,555,666"
julia> s = format(111222333444555666.01, commas=true, precision = 2 , stripzeros = true )
"111,222,333,444,555,664" # <= shouldn't this be "111,222,333,444,555,666.01"?
That’s not a bug with format, the issue is binary floating point only has 53 bits for the value (really 52, but there’s actually an assumed leading 1 bit for all except subnormal numbers). The rest of the bits are for the sign bit and a biased exponent.
julia> x = 111222333444555666.01
1.1122233344455566e17
julia> nextfloat(x)
1.1122233344455568e17