header
<cfloat> (float.h)Characteristics of floating-point types
This header describes the characteristics of floating types for the specific system and compiler implementation used.A floating-point number is composed of four elements:
When a group of macros exists prefixed by FLT_, DBL_ and LDBL_, the one beginning with FLT_ applies to the float
type, the one with DBL_ to double
and the one with LDBL_ to long double
.
samp>2 /samp> or greaterRADIX Base for all floating-point types (
float
, double
and long double
). FLT_MANT_DIG
6
or greater
10
or greater
10
or greater DIGits Number of decimal digits that can be rounded into a floating-point and back without change in the number of decimal digits. FLT_MIN_EXP
-37
or smaller
-37
or smaller
-37
or smaller MINimum base-10 EXPonent Minimum negative integer value for the exponent of a base-10 expression that would generate a normalized floating-point number. FLT_MAX_EXP
37
or greater
37
or greater
37
or greater MAXimum base-10 EXPonent Maximum integer value for the exponent of a base-10 expression that would generate a normalized floating-point number. FLT_MAX
1E+37
or greater
1E+37
or greater
1E+37
or greater MAXimum Maximum finite representable floating-point number. FLT_EPSILON
1E-5
or smaller
1E-9
or smaller
1E-9
or smaller EPSILON Difference between 1 and the least value greater than 1 that is representable. FLT_MIN
1E-37
or smaller
1E-37
or smaller
1E-37
or smaller MINimum Minimum representable positive floating-point number. FLT_ROUNDS ROUND Rounding behavior. Possible values:
-1
undetermined
0
toward zero
1
to nearest
2
toward positive infinity
3
toward negative infinity
float
, double
and long double
).
-1
undetermined
0
evaluate just to the range and precision of the type
1
evaluate float
and double
as double
, and long double
as long double
.
2
evaluate all as long double
Other negative values indicate an implementation-defined behavior.
float
, double
and long double
).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4