Comment by xfer

4 years ago

The real question is why is it a bug to report 1 mB instead of 999.9 kB for human readable output? It seems like a nice excursion to FP related pitfalls, but i don't think this is a problem to get entangled in that.

Because it doesn't print 999.9 kB or 1 mB.

It prints 1000.0 kB.

  • I still wouldn't consider it a bug since we are throwing lots of lsbs anyways. It matters even less when we are talking about Peta/Exa bytes.