RoundingMode 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#
public enum RoundingMode

Members

TowardsZero0 Positive numbers are rounded down. Negative numbers are rounded up.
TowardsPositiveInfinity1 All numbers are rounded up.
TowardsNegativeInfinity2 All numbers are rounded down.
TowardsNearest3 Numbers are rounded towards the nearest value. In case of a tie, the rounded value with last binary digit zero is chosen.

See Also