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