parnoldx / nasc

Do maths like a normal person
http://parnoldx.github.io/nasc/
GNU General Public License v3.0
560 stars 37 forks source link

Add ability to convert Decimal to Binary. #83

Closed SubhadeepJasu closed 4 years ago

SubhadeepJasu commented 6 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>).

eugeneia commented 4 years ago

What if binary/hex/octal were treated as units, so you could:

0b01 * 2              0b10
ans to decimal        2

etc?

parnoldx commented 4 years ago

This works now see #116