ip1=10echo "obase=2;$ip1" | bc
Standard input is empty
1010
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!