Morfina Posted August 8, 2018 Share Posted August 8, 2018 Did value of float maximum is 900,000? Link to comment Share on other sites More sharing options...
CmP Posted August 8, 2018 Share Posted August 8, 2018 Quote A 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. 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.402823 × 10^(38). https://en.wikipedia.org/wiki/Single-precision_floating-point_format Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.