Scale byte values FIXED by clock

#!ruby -n
n=eval$_
puts n<(b=1023.0)?n:"%.2f %cB"%[b>(n/=b)?n:n/b,n<b ?75:77]

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

download

return to the top page