| float.h | Header File

Header File Index

Various platform-dependent floating point constants proposed by ANSI

This header file contains a set of various platform-dependent constants related to floating point values. These constants are proposed by ANSI C. They allow making more portable programs.

Constants

DBL_DIG
  Number of significant digits in a floating point number.
DBL_EPSILON
  The smallest x for which 1.0+x != 1.0.
DBL_MANT_BITS
  Number of bits used for the mantissa.
DBL_MANT_DIG
  Number of FLT_RADIX digits in the mantissa.
DBL_MAX_10_EXP
  The maximal exponent of a floating point value expressed in base 10 (see notes about FLT_MAX_EXP).
DBL_MAX_2_EXP
  The maximal exponent of a floating point value expressed in base 2 (see notes about FLT_MAX_EXP).
DBL_MAX_EXP
  The maximal exponent of a floating point value expressed in base FLT_RADIX; greater exponents are principally possible (up to 16383), but not supported in all math functions.
DBL_MAX
  The maximal floating point value (see notes about FLT_MAX_EXP).
DBL_MIN_10_EXP
  The minimal exponent of a floating point value expressed in base 10 (see notes about FLT_MIN_EXP).
DBL_MIN_2_EXP
  The minimal exponent of a floating point value expressed in base 2 (see notes about FLT_MIN_EXP).
DBL_MIN_EXP
  The maximal exponent of a floating point value expressed in base FLT_RADIX; smaller exponents are principally possible (up to -16383), but not supported in all math functions.
DBL_MIN
  The minimal floating point value (see notes about FLT_MIN_EXP).
FLT_DIG
  Number of significant digits in a floating point number.
FLT_EPSILON
  The smallest x for which 1.0+x != 1.0.
FLT_MANT_BITS
  Number of bits used for the mantissa.
FLT_MANT_DIG
  Number of FLT_RADIX digits in the mantissa.
FLT_MAX_10_EXP
  The maximal exponent of a floating point value expressed in base 10 (see notes about FLT_MAX_EXP).
FLT_MAX_2_EXP
  The maximal exponent of a floating point value expressed in base 2 (see notes about FLT_MAX_EXP).
FLT_MAX_EXP
  The maximal exponent of a floating point value expressed in base FLT_RADIX; greater exponents are principally possible (up to 16383), but not supported in all math functions.
FLT_MAX
  The maximal floating point value (see notes about FLT_MAX_EXP).
FLT_MIN_10_EXP
  The minimal exponent of a floating point value expressed in base 10 (see notes about FLT_MIN_EXP).
FLT_MIN_2_EXP
  The minimal exponent of a floating point value expressed in base 2 (see notes about FLT_MIN_EXP).
FLT_MIN_EXP
  The minimal exponent of a floating point value expressed in base FLT_RADIX; smaller exponents are principally possible (up to -16383), but not supported in all math functions.
FLT_MIN
  The minimal floating point value (see notes about FLT_MIN_EXP).
FLT_NORMALIZE
  Indicates that floating point numbers should always be normalized.
FLT_RADIX
  The base used for representing the exponent.
FLT_ROUNDS
  Option for rounding floating point numbers during the addition.
LDBL_DIG
  Number of significant digits in a floating point number.
LDBL_EPSILON
  The smallest x for which 1.0+x != 1.0.
LDBL_MANT_BITS
  Number of bits used for the mantissa.
LDBL_MANT_DIG
  Number of FLT_RADIX digits in the mantissa.
LDBL_MAX_10_EXP
  The maximal exponent of a floating point value expressed in base 10 (see notes about FLT_MAX_EXP).
LDBL_MAX_2_EXP
  The maximal exponent of a floating point value expressed in base 2 (see notes about FLT_MAX_EXP).
LDBL_MAX_EXP
  The maximal exponent of a floating point value expressed in base FLT_RADIX; greater exponents are principally possible (up to 16383), but not supported in all math functions.
LDBL_MAX
  The maximal floating point value (see notes about FLT_MAX_EXP).
LDBL_MIN_10_EXP
  The minimal exponent of a floating point value expressed in base 10 (see notes about FLT_MIN_EXP).
LDBL_MIN_2_EXP
  The minimal exponent of a floating point value expressed in base 2 (see notes about FLT_MIN_EXP).
LDBL_MIN_EXP
  The maximal exponent of a floating point value expressed in base FLT_RADIX; smaller exponents are principally possible (up to -16383), but not supported in all math functions.
LDBL_MIN
  The minimal floating point value (see notes about FLT_MIN_EXP).

See also: values.h