You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following table lists the limits on the values of floating-point constants. These limits are also defined in the standard header file \<float.h>.
18
-
19
-
### Limits on Floating-Point Constants
20
-
21
-
|Constant|Meaning|Value|
22
-
|--------------|-------------|-----------|
23
-
|FLT_DIG DBL_DIG LDBL_DIG|Number of digits, q, such that a floating-point number with q decimal digits can be rounded into a floating-point representation and back without loss of precision.|6 15 15|
24
-
|FLT_EPSILON DBL_EPSILON LDBL_EPSILON|Smallest positive number x, such that x + 1.0 is not equal to 1.0.|1.192092896e-07F 2.2204460492503131e-016 2.2204460492503131e-016|
25
-
|FLT_GUARD||0|
26
-
|FLT_MANT_DIG DBL_MANT_DIG LDBL_MANT_DIG|Number of digits in the radix specified by FLT_RADIX in the floating-point significand. The radix is 2; hence these values specify bits.|24 53 53|
|FLT_MAX_10_EXP DBL_MAX_10_EXP LDBL_MAX_10_EXP|Maximum integer such that 10 raised to that number is a representable floating-point number.|38 308 308|
29
-
|FLT_MAX_EXP DBL_MAX_EXP LDBL_MAX_EXP|Maximum integer such that FLT_RADIX raised to that number is a representable floating- point number.|128 1024 1024|
|FLT_MIN_10_EXP DBL_MIN_10_EXP LDBL_MIN_10_EXP|Minimum negative integer such that 10 raised to that number is a representable floating- point number.|-37<br /><br /> -307<br /><br /> -307|
32
-
|FLT_MIN_EXP DBL_MIN_EXP LDBL_MIN_EXP|Minimum negative integer such that FLT_RADIX raised to that number is a representable floating-point number.|-125<br /><br /> -1021<br /><br /> -1021|
33
-
|FLT_NORMALIZE||0|
34
-
|FLT_RADIX _DBL_RADIX _LDBL_RADIX|Radix of exponent representation.|2 2 2|
The following table lists the limits on the values of floating-point constants. These limits are also defined in the standard header file \<float.h>.
19
+
20
+
## Limits on Floating-Point Constants
21
+
22
+
|Constant|Meaning|Value|
23
+
|--------------|-------------|-----------|
24
+
|`FLT_DIG`<br/>`DBL_DIG`<br/>`LDBL_DIG`|Number of digits, q, such that a floating-point number with q decimal digits can be rounded into a floating-point representation and back without loss of precision.|6<br/>15<br/>15|
25
+
|`FLT_EPSILON`<br/>`DBL_EPSILON`<br/>`LDBL_EPSILON`|Smallest positive number x, such that x + 1.0 is not equal to 1.0.|1.192092896e-07F<br/>2.2204460492503131e-016<br/>2.2204460492503131e-016|
26
+
|`FLT_GUARD`||0|
27
+
|`FLT_MANT_DIG`<br/>`DBL_MANT_DIG`<br/>`LDBL_MANT_DIG`|Number of digits in the radix specified by `FLT_RADIX` in the floating-point significand. The radix is 2; hence these values specify bits.|24<br/>53<br/>53|
|`FLT_MAX_10_EXP`<br/>`DBL_MAX_10_EXP`<br/>`LDBL_MAX_10_EXP`|Maximum integer such that 10 raised to that number is a representable floating-point number.|38<br/>308<br/>308|
30
+
|`FLT_MAX_EXP`<br/>`DBL_MAX_EXP`<br/>`LDBL_MAX_EXP`|Maximum integer such that `FLT_RADIX` raised to that number is a representable floating- point number.|128<br/>1024<br/>1024|
|`FLT_MIN_10_EXP`<br/>`DBL_MIN_10_EXP`<br/>`LDBL_MIN_10_EXP`|Minimum negative integer such that 10 raised to that number is a representable floating- point number.|-37<br/>-307<br/>-307|
33
+
|`FLT_MIN_EXP`<br/>`DBL_MIN_EXP`<br/>`LDBL_MIN_EXP`|Minimum negative integer such that `FLT_RADIX` raised to that number is a representable floating-point number.|-125<br/>-1021<br/>-1021|
34
+
|`FLT_NORMALIZE`||0|
35
+
|`FLT_RADIX`<br/>`_DBL_RADIX`<br/>`_LDBL_RADIX`|Radix of exponent representation.|2<br/>2<br/>2|
36
+
|`FLT_ROUNDS`<br/>`_DBL_ROUNDS`<br/>`_LDBL_ROUNDS`|Rounding mode for floating-point addition.|1 (near)<br/>1 (near)<br/>1 (near)|
37
+
37
38
> [!NOTE]
38
-
> The information in the table may differ in future versions of the product.
39
-
40
-
**END Microsoft Specific**
41
-
42
-
## See also
43
-
[Integer Limits](../cpp/integer-limits.md)
39
+
> The information in the table may differ in future versions of the product.
0 commit comments