
All integers with 7 or fewer decimal digits, and any 2 n for a whole number −149 ≤ n ≤ 127, can be converted exactly into an IEEE 754 single-precision floating-point value.

A signed 32-bit integer variable has a maximum value of 2 31 − 1 = 2,147,483,647, whereas an IEEE 754 32-bit base-2 floating-point variable has a maximum value of (2 − 2 −23) × 2 127 ≈ 3.4028235 × 10 38.

Single-precision floating-point format (sometimes called FP32 or float32) is a computer number format, usually occupying 32 bits in computer memory it represents a wide dynamic range of numeric values by using a floating radix point.Ī floating-point variable can represent a wider range of numbers than a fixed-point variable of the same bit width at the cost of precision.
