Enumerates the possible ways to round a number.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
Public Enumeration RoundingMode
public enum class RoundingMode
| Member name | Value | Description |
---|
| TowardsZero | 0 |
Positive numbers are rounded down. Negative numbers are rounded up.
|
| TowardsPositiveInfinity | 1 |
All numbers are rounded up.
|
| TowardsNegativeInfinity | 2 |
All numbers are rounded down.
|
| TowardsNearest | 3 |
Numbers are rounded towards the nearest value. In case of a tie,
the rounded value with last binary digit zero is chosen.
|
Reference