2**0
🤦♂️
2**0
🤦♂️
bc
to quickly convert between bases. obase=2
changes to binary output format, so then you just enter the number in decimal and out you get the presentation in base two. Inverse can be done with ibase=2
. Super handy. There's just one catch with changing the input base, the new base of course has to be passed in the previously used input base. :-)
I guess I'm old school because I still use
dc
╰─ dc -e '49 2o p'
110001
dc
a long time ago, but I don't think I ever used it. Completely forgot about this classic.