Rolling division by pooq

a=io.read"*n"while(a>=1)do print(("%.1f"):format(a))a=(a%1*2*(a%2-1)+a)/2 end

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

download

return to the top page