Scale byte values by pooq

k=1024
for i=1to 1343input""n
if n<k?n:goto 1
u$=" KB"
if n>=k^2u$=" MB":n=n/k
?n/k+1e-6using("%.2f"),u$
1next

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

download

return to the top page