How float variable stores negative values which are not in their range in c++? -
The range of float values is 3.4 e-38 to 3.4 e + 38 Float variable negative values should not be stored. But float variables accumulate negative values. Please explain to me
Includes # lt; Iostream.h & gt; Zero main () {float ab = -3.456; The court's & lt; & Lt; Now; }
Output: -3.456
Thanks in advance.
range 2 -126 ≈ 1.18 × 10 for an exact float < Sup> -38 (2-2 -23 ) for positive values and equals × 2 127 ≈ 3.4 × 10 38 And reverse for negative values: -3.4 × 10 38 -1.18 × <10>
Comments
Post a Comment