Rounding Mode Enumeration
Enumerates the possible ways to round a number.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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. |