<float.h> header describes the characteristics of floating types for the specific system.
The <float.h> header shall define the following macro constants:
Related topics:
<assert.h> | <complex.h> | <ctype.h> | <errno.h> | <fenv.h> | Standard Library in C
List of topics: C Programming
The <float.h> header shall define the following macro constants:
FLT_RADIX | the radix (integer base) used by the representation of all three floating-point types |
DECIMAL_DIG | number of decimal digits that can be converted to long double and back without losing precision(C99) |
FLT_DECIMAL_DIG DBL_DECIMAL_DIG LDBL_DECIMAL_DIG | number of decimal digits such that any floating-point number can be rounded to a floating-point number with this many decimal digits and back again without change to the value. Defined to at least 6, 10, and 10 respectively. (C11) |
FLT_MIN DBL_MIN LDBL_MIN | minimum normalized positive value of float, double, long double respectively |
FLT_TRUE_MIN DBL_TRUE_MIN LDBL_TRUE_MIN | minimum positive value of float, double, long double respectively (C11) |
FLT_MAX DBL_MAX LDBL_MAX | maximum finite value of float, double, long double, respectively |
FLT_EPSILON DBL_EPSILON LDBL_EPSILON | difference between 1.0 and the next representable value for float, double and long double respectively |
FLT_DIG DBL_DIG LDBL_DIG | number of decimal digits that can be represented without losing precision for float, double and long double respectively |
FLT_MANT_DIG DBL_MANT_DIG LDBL_MANT_DIG | number of base-FLT_RADIX digits that are in the floating-point mantissa and that can be represented without losing precision for float, double and long double respectively |
FLT_MIN_EXP DBL_MIN_EXP LDBL_MIN_EXP | minimum negative integer such that FLT_RADIX raised by power one less than that integer is a normalized float, double and long double respectively |
FLT_MIN_10_EXP DBL_MIN_10_EXP LDBL_MIN_10_EXP | minimum negative integer such that 10 raised by power one less than that integer is a normalized float, double and long double respectively |
FLT_MAX_EXP DBL_MAX_EXP LDBL_MAX_EXP | maximum positive integer such that FLT_RADIX raised by power one less than that integer is a normalized float, double and long double respectively |
FLT_MAX_10_EXP DBL_MAX_10_EXP LDBL_MAX_10_EXP | maximum positive integer such that 10 raised by power one less than that integer is a normalized float, double and long double respectively |
FLT_ROUNDS | rounding mode of floating-point arithmetics, equal to float_round_style |
FLT_EVAL_METHOD | use of extended precision for intermediate results: 0 not used, 1 double is used instead of float, 2: long double is used (C99) |
FLT_HAS_SUBNORM DBL_HAS_SUBNORM LDBL_HAS_SUBNORM | whether the type supports subnormal (denormal) numbers: -1 indeterminable, 0 absent, 1 present (C11) |
Related topics:
<assert.h> | <complex.h> | <ctype.h> | <errno.h> | <fenv.h> | Standard Library in C
List of topics: C Programming
No comments:
Post a Comment