You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This is a python script that converts a fraction or non-fractionDecimal Number (base 10) to the equivalentBinary Number (base 2).
Currently it cannot convert from binary to decimal.
If you'd like to add this feature, please feel free to do so
Usage
python ftb.py <fraction> <number of decimals>
fraction is the base-10 number that you would like to conver to binary (Note: if it's a fraction it must be indecimal form!)
number of decimals is the number of decimals (degree of accuracy) placed after the whole number part of the output binary number (Use 0 for whole numbers!)