Rounding Mode Enumeration
Enumerates the possible ways to round a number.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public enum RoundingMode
Members
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. |