IEEE 754 Floating-Point Converter
Convert a decimal number to IEEE 754 single (32-bit) and double (64-bit) precision — sign, exponent and mantissa bits, hex, and the rounding error.
Convert a decimal number to IEEE 754 single (32-bit) and double (64-bit) precision — sign, exponent and mantissa bits, hex, and the rounding error.
Results
About This Calculator
Single: 1 sign bit, 8 exponent bits (bias 127), 23 mantissa bits. Double: 1, 11 (bias 1023), 52. Value = (−1)^s × 1.mantissa × 2^(exponent − bias).
Example
Example: 0.1 is 0x3DCCCCCD in single precision — actually 0.100000001490.
Assumptions
Round-to-nearest-even, as in hardware.
Frequently Asked Questions
Why can't 0.1 be stored exactly?
In binary 0.1 is a repeating fraction, so it must be rounded.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile