IEEE754 Convertor
2021-08-23 (Version 1.0)
Feature
Input binary and convert to float and hex value
Able to input binary with digit:
Sign : 1 digit
Exponent : 8 digits
Mantissa : 23 digits
Notes:
- Over 3 input fields (Sign+Exponent+Mantissa) is not allowed
- Auto add trailing zero if digit is not enough
- Auto cut the excess digit
Example:
Run:
javac IEEE754Convertor.java
java IEEE754Convertor 0 10000101 001011111
Result:
---------------------------
Binary value is: 0 10000101 00101111100000000000000
---------------------------
Sign is : +
Exponent is : 133 (133 - 127 = 6 )
Mantissa is : 1.185546875
---------------------------
1.185546875 * 2^6 = 75.875
---------------------------
The Decimal value is : +75.875
Hex is : 4297c000