Humanize.jl
Humanize.jl copied to clipboard
The negative data size values are not scaled correctly
julia> using Humanize
julia> Humanize.datasize(161803; style=:dec, format="%.3f")
"161.803 kB"
julia> Humanize.datasize(161803; style=:gnu, format="%.3f")
"158.011K"
julia> Humanize.datasize(-161803; style=:dec, format="%.3f")
"-161803.000 B"
julia> Humanize.datasize(-161803; style=:gnu, format="%.3f")
"-161803.000"
Look at the values
"-161803.000 B"
for the decimal style and
"-161803.000"
for the GNU style.