Skip to content

Commit d507304

Browse files
Merge pull request #5377 from Rageking8/clean-up-limits-enums-reference
Clean up `<limits>` enums reference
2 parents 8b48344 + 7018b35 commit d507304

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed
Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,63 @@
11
---
2-
description: "Learn more about: <limits> enums"
32
title: "<limits> enums"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: <limits> enums"
4+
ms.date: 11/04/2016
55
f1_keywords: ["limits/std::float_denorm_style", "limits/std::float_round_style"]
6-
ms.assetid: c86680a2-ba97-4ed9-8c20-a448857d7dc5
76
---
87
# `<limits>` enums
98

10-
## <a name="float_denorm_style"></a> float_denorm_style
9+
The `<limits>` header provides the following enums:
10+
11+
## <a name="float_denorm_style"></a> `float_denorm_style`
1112

1213
The enumeration describes the various methods that an implementation can choose for representing a denormalized floating-point value — one too small to represent as a normalized value:
1314

1415
```cpp
15-
enum float_denorm_style {
16+
enum float_denorm_style
17+
{
1618
denorm_indeterminate = -1,
1719
denorm_absent = 0,
18-
denorm_present = 1 };
20+
denorm_present = 1
21+
};
1922
```
2023

2124
### Return Value
2225

2326
The enumeration returns:
2427

2528
- `denorm_indeterminate` if the presence or absence of denormalized forms cannot be determined at translation time.
26-
2729
- `denorm_absent` if denormalized forms are absent.
28-
2930
- `denorm_present` if denormalized forms are present.
3031

3132
### Example
3233

33-
See [numeric_limits::has_denorm](../standard-library/numeric-limits-class.md#has_denorm) for an example in which the values of this enumeration may be accessed.
34+
See [`numeric_limits::has_denorm`](numeric-limits-class.md#has_denorm) for an example in which the values of this enumeration may be accessed.
3435

35-
## <a name="float_round_style"></a> float_round_style
36+
## <a name="float_round_style"></a> `float_round_style`
3637

3738
The enumeration describes the various methods that an implementation can choose for rounding a floating-point value to an integer value.
3839

3940
```cpp
40-
enum float_round_style {
41+
enum float_round_style
42+
{
4143
round_indeterminate = -1,
4244
round_toward_zero = 0,
4345
round_to_nearest = 1,
4446
round_toward_infinity = 2,
45-
round_toward_neg_infinity = 3 };
47+
round_toward_neg_infinity = 3
48+
};
4649
```
4750

4851
### Return Value
4952

5053
The enumeration returns:
5154

5255
- `round_indeterminate` if the rounding method cannot be determined.
53-
5456
- `round_toward_zero` if the round toward zero.
55-
5657
- `round_to_nearest` if the round to nearest integer.
57-
5858
- `round_toward_infinity` if the round away from zero.
59-
6059
- `round_toward_neg_infinity` if the round to more negative integer.
6160

6261
### Example
6362

64-
See [numeric_limits::round_style](../standard-library/numeric-limits-class.md#round_style) for an example in which the values of this enumeration may be accessed.
63+
See [`numeric_limits::round_style`](numeric-limits-class.md#round_style) for an example in which the values of this enumeration may be accessed.

0 commit comments

Comments
 (0)