Floating-Point Calculator (IEEE 754)

Convert a decimal number to its IEEE 754 single (32-bit) or double (64-bit) binary representation, with sign, exponent, and mantissa fields.

Frequently Asked Questions

Why is 0.1 + 0.2 = 0.30000000000000004?

Because 0.1 and 0.2 are infinite repeating binary fractions. Both are rounded to the nearest representable double, then the addition rounds again. The result is the nearest double to 0.3, which is 0.30000000000000004.

What is the largest representable double?

About 1.797 × 10^308 (DBL_MAX). Anything larger overflows to +Infinity. The smallest positive normal double is ~2.225 × 10^-308.

When should I use float instead of double?

When memory and bandwidth matter and 7 digits of precision are enough (graphics buffers, ML weights). For general numeric work, double is the safer default.

Important Disclaimer: Estimates for informational purposes only.

This calculator provides estimates for informational purposes only. Results are based on assumptions and may not reflect actual outcomes. Consult qualified professionals in relevant fields before making important decisions based on these results.