[Python-ideas] real numbers with SI scale factors: next steps

Stephen J. Turnbull turnbull.stephen.fw at u.tsukuba.ac.jp
Wed Aug 31 23:57:45 EDT 2016


Random832 writes:

 > Also, interesting quirk - it always rounds up. 1025 bytes is "1.1K", and
 > in SI mode, 1001 bytes is "1.1k"

That seems to be right approach: in system administration, these
numbers are used mostly to understand resource usage, and
underestimates are almost never what you want, while quite large
overestimates are tolerable, and are typically limited because the
actual precision of calculations is much higher than that of the
"human-readable" output.

I don't know if that would be true in general-purpose programming.  I
suspect not.



More information about the Python-ideas mailing list