stdin.get_s(2K).split(" "){|a|a=a.to_f;b:500;c:b;while(a!=b){b.to_s~(a>b?" <":" >") .p;c*=0.5;b+=0.5+(a>b?c:-c);b-=b%1;}b.to_s~" = " .p;};
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page