Skip to content

Commit d6ad8d5

Browse files
author
Colin Robertson
committed
Fix formatting of fp manifest constants
1 parent 37503f8 commit d6ad8d5

1 file changed

Lines changed: 31 additions & 29 deletions

File tree

docs/cpp/floating-limits.md

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Floating Limits | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/04/2016"
4+
ms.date: "08/03/2018"
55
ms.technology: ["cpp-language"]
66
ms.topic: "language-reference"
77
dev_langs: ["C++"]
@@ -12,32 +12,34 @@ ms.author: "mblome"
1212
ms.workload: ["cplusplus"]
1313
---
1414
# Floating Limits
15-
**Microsoft Specific**
16-
17-
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|
27-
|FLT_MAX DBL_MAX LDBL_MAX|Maximum representable floating-point number.|3.402823466e+38F 1.7976931348623158e+308 1.7976931348623158e+308|
28-
|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|
30-
|FLT_MIN DBL_MIN LDBL_MIN|Minimum positive value.|1.175494351e-38F 2.2250738585072014e-308 2.2250738585072014e-308|
31-
|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|
35-
|FLT_ROUNDS _DBL_ROUNDS _LDBL_ROUNDS|Rounding mode for floating-point addition.|1 (near) 1 (near) 1 (near)|
36-
15+
16+
**Microsoft Specific**
17+
18+
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|
28+
|`FLT_MAX`<br/>`DBL_MAX`<br/>`LDBL_MAX`|Maximum representable floating-point number.|3.402823466e+38F<br/>1.7976931348623158e+308<br/>1.7976931348623158e+308|
29+
|`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|
31+
|`FLT_MIN`<br/>`DBL_MIN`<br/>`LDBL_MIN`|Minimum positive value.|1.175494351e-38F<br/>2.2250738585072014e-308<br/>2.2250738585072014e-308|
32+
|`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+
3738
> [!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.
40+
41+
**END Microsoft Specific**
42+
43+
## See also
44+
45+
[Integer Limits](../cpp/integer-limits.md)

0 commit comments

Comments
 (0)