Closed SubhadeepJasu closed 4 years ago
I was doing a sort of data problem and I needed a way to convert decimal to binary. Just the reverse of decimal = bin(<binary>).
decimal = bin(<binary>)
What if binary/hex/octal were treated as units, so you could:
0b01 * 2 0b10 ans to decimal 2
etc?
This works now see #116
I was doing a sort of data problem and I needed a way to convert decimal to binary. Just the reverse of
decimal = bin(<binary>)
.