Next: Special Float Values, Previous: Floating Representations, Up: Floating Point in Depth [Contents][Index]
The standard library header file float.h defines a number of
constants that describe the platform’s implementation of
floating-point types float, double and long
double. They include:
FLT_MINDBL_MINLDBL_MINDefines the minimum normalized positive floating-point values that can be represented with the type.
FLT_HAS_SUBNORMDBL_HAS_SUBNORMLDBL_HAS_SUBNORMDefines if the floating-point type supports subnormal (or “denormalized”) numbers or not (see subnormal numbers).
FLT_TRUE_MINDBL_TRUE_MINLDBL_TRUE_MINDefines the minimum positive values (including subnormal values) that can be represented with the type.
FLT_MAXDBL_MAXLDBL_MAXDefines the largest values that can be represented with the type.
FLT_DECIMAL_DIGDBL_DECIMAL_DIGLDBL_DECIMAL_DIGDefines the number of decimal digits n such that any
floating-point number that can be represented in the type can be
rounded to a floating-point number with n decimal digits, and
back again, without losing any precision of the value.