Skip to content

Clean up <limits> enums reference #5377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions docs/standard-library/limits-enums.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,63 @@
---
description: "Learn more about: <limits> enums"
title: "<limits> enums"
ms.date: "11/04/2016"
description: "Learn more about: <limits> enums"
ms.date: 11/04/2016
f1_keywords: ["limits/std::float_denorm_style", "limits/std::float_round_style"]
ms.assetid: c86680a2-ba97-4ed9-8c20-a448857d7dc5
---
# `<limits>` enums

## <a name="float_denorm_style"></a> float_denorm_style
The `<limits>` header provides the following enums:

## <a name="float_denorm_style"></a> `float_denorm_style`

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:

```cpp
enum float_denorm_style {
enum float_denorm_style
{
denorm_indeterminate = -1,
denorm_absent = 0,
denorm_present = 1 };
denorm_present = 1
};
```

### Return Value

The enumeration returns:

- `denorm_indeterminate` if the presence or absence of denormalized forms cannot be determined at translation time.

- `denorm_absent` if denormalized forms are absent.

- `denorm_present` if denormalized forms are present.

### Example

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.
See [`numeric_limits::has_denorm`](numeric-limits-class.md#has_denorm) for an example in which the values of this enumeration may be accessed.

## <a name="float_round_style"></a> float_round_style
## <a name="float_round_style"></a> `float_round_style`

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

```cpp
enum float_round_style {
enum float_round_style
{
round_indeterminate = -1,
round_toward_zero = 0,
round_to_nearest = 1,
round_toward_infinity = 2,
round_toward_neg_infinity = 3 };
round_toward_neg_infinity = 3
};
```

### Return Value

The enumeration returns:

- `round_indeterminate` if the rounding method cannot be determined.

- `round_toward_zero` if the round toward zero.

- `round_to_nearest` if the round to nearest integer.

- `round_toward_infinity` if the round away from zero.

- `round_toward_neg_infinity` if the round to more negative integer.

### Example

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.
See [`numeric_limits::round_style`](numeric-limits-class.md#round_style) for an example in which the values of this enumeration may be accessed.