Scale byte values by hallvabo

while 1:b=input();k=1024.;x=b>k*k;print(b,"%.2f %cB"%(b/k**-~x+1e-6,75+2*x))[b>k]

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top