How to calculate the range of maximum float...??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to calculate the range of maximum float...???

which is 3.4e-38 to 3.4e+38

23rd Jun 2017, 7:03 AM
Yogesh Thakkar
Yogesh Thakkar - avatar
2 Answers
+ 9
The difference between the maximum float value and the minimum float value (?). You may need to elaborate a little more on your query.
23rd Jun 2017, 7:04 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
First include limits.h : #include <limits.h> Then you have access to the macro FLT_MAX. As the minimum value of float is -FLT_MAX, you only need one macro.
23rd Jun 2017, 7:38 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar