This simple application written in Vanilla JS converts Binary to Decimal & vice versa.
Please find below the list of all the supported conversions
- Binary → Integer;
- Integer → Binary;
- Float → Binary (16-bit precision);
- Binary → Float (16-digit precision);
- -Binary → -Integer;
- -Integer → -Binary;
- -Float → -Binary (16-bit precision);
- -Binary → -Float (16-digit precision);
The conversion algorithms refer to the processes underlying the methods .toString(number, 2)
and .parseInt(string, 2)
, which already convert Binary to Decimal and vice versa.
These two methods were not used to obtain the final results to enhance the complexity of this project.
Any feedback will be highly appreciated 🙂