Scale byte values FIXED by hallvabo

while 1:b=input();k=1023.;x=b>k*k;print(b,"%.2f %cB"%(b/k**-~x,'KM'[x]))[b>k]

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

download

return top