Runtime-Support
Functions
-
Header
Files
Table
6-2.
Macros
that
Supply
Floating-Point
Range
Limits
(float.h)
Macro
Value
Description
FLT-RADIX
2
Base
or radix
of
exponent representation
FLT-ROUNDS 0
Rounding mode for floating-point addition (rounds
to
nearest integer)
FLT-DIG
6 Number
of
decimal digits
of
precision for a float
FLT-MANT-DIG
23 Number
of
base-
FL
T
-RADIX
digits in the mantissa
of
a
float
FLT-MIN-EXP
-126 Smallest exponent (base 2) for a float
FL
T
-MAX-EXP
127 Largest exponent (base 2) for a float
FLT-EPSILON 1.1920929E-07F
Minimum positive float
x such that 1.0 + x
#:
.1.0
FLT-MIN
5.8774720E-39F Minimum positive float
FLT-MAX
1.7014116E+38F Maximum positive float
FLT
-MI
N-1
O-EXP
-39 Minimum negative integer such that
10
raised
to
that
power
is
in the range
of
normalized floats
FLT-MAX-10-EXP
38 Maximum positive integer such that
10
raised
to
that
power
is
in the range
of
normalized floats
DBL-DIG
15 Number
of
decimal digits
of
precision for a double or
LDBL-DIG
a long double
DBL-MANT-DIG
52 Number
of
base-
FL
T
-RADIX
digits in the mantissa
LDBL-MANT-DIG
of
a double or a long double
DBL-MIN-EXP
-1022 Smallest exponent (base 2)
for
a double or long double
LDBL-MIN-EXP
DBL-MAX-EXP
1023 Largest exponent (base 2) for a double or long double
LDBL-MAX-EXP
DBL-EPSILON
2.22044604925031 r E-16
LDBL-EPSILON Minimum positive double or long double x such that 1.0
+ x
#:
.1.0
DBL-MIN
1.112536929253692fE-308
LDBL-MIN
Minimum positive double or long double
DBL-MAX
8.988465674311620E+307
LDBL-MAX
DBL-MIN-10-EXP
LDBL-MIN-10-EXP
DBL-MAX-10-EXP
LDBL-MAX-10-EXP
Key
to
prefixes:
FLT-
applies to type float
DBL-
applies
to
type double
LDBL-applies
to
type long double
6-4
Maximum positive double or long double
-308
Minimum negative integer such that
10
raised
to
that power is in the range
of
normalized doubles or
long doubles
307
Maximum positive integer such that
10
raised
to
that power
is
in the range
of
normalized doubles or
long doubles