Header Files
7-7
Run-Time-Support Functions
Table 7
−
2. Macros That Supply Floating-Point Range Limits
(
float.h
)
Macro
Value
Description
FLT_RADIX
2
Base or radix of exponent representation
FLT_ROUNDS
1
Rounding mode for floating-point addition (rounds toward
integer)
FLT_DIG
DBL_DIG
LDBL_DIG
6
Number of decimal digits of precision for a float, double, or
long double
FLT_MANT_DIG
DBL_MANT_DIG
LDBL_MANT_DIG
24
Number of base-FLT_RADIX digits in the mantissa of a float,
double, or long double
FLT_MIN_EXP
DBL_MIN_EXP
LDBL_MIN_EXP
−
125
Minimum negative integer such that FLT_RADIX raised to
that power minus 1 is a normalized float, double, or long
double
FLT_MAX_EXP
DBL_MAX_EXP
LDBL_MAX_EXP
128
Maximum integer such that FLT_RADIX raised to that power
is a representative finite float, double, or long double
FLT_EPSILON
DBL_EPSILON
LDBL_EPSILON
1.19209290E-07F
Minimum positive float, double, or long double number
x
such that
1.0 +
x
≠
1.0
FLT_MIN
DBL_MIN
LDBL_MIN
1.17549435E-38F
Minimum positive float, double, or long double
FLT_MAX
DBL_MAX
LDBL_MAX
3.4038F
Maximum positive float, double, or long double
FLT_MIN_10_EXP
DBL_MIN_10_EXP
LDBL_MIN_10_EXP
−
37
Minimum negative integer such that 10 raised to that power
is in the range of normalized floats, doubles, or long doubles
FLT_MAX_10_EXP
DBL_MAX_10_EXP
LDBL_MAX_10_EXP
38
Maximum positive integer such that 10 raised to that power
is in the range of finite floats, doubles, or long doubles
Key to prefixes:
FLT_
applies to type float.
DBL_
applies to type double.
LDBL_
applies to type long double.
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...