Is there any built in formula for calculating the range of float &double in c?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ashwani Reshma
    New Member
    • Oct 2013
    • 1

    #1

    Is there any built in formula for calculating the range of float &double in c?

    I want to get the direct formula for calculating the range of double and float datatypes in c,if any.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Just look in float.h for the min/max values of floating point types.

    There is no formula since the language specification defines the format of the floating point types.

    Comment

    Working...