c 0=0c n=c(div n 2)*10+mod n 2b('-':r)='-':b rb r=show.c.read$r main=interact b
-1023
-1111111111
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!