RoundingAlgorithm RoundingAlgorithm RoundingAlgorithm Enum
Definition
Specifies the algorithm used to round numbers.
public enum RoundingAlgorithm
public enum RoundingAlgorithm
Public Enum RoundingAlgorithm
 Attributes
Device family 
Windows 10 (introduced v10.0.10240.0)

API contract 
Windows.Foundation.UniversalApiContract (introduced v1)

Fields
None None None  No rounding is performed. 
RoundAwayFromZero RoundAwayFromZero RoundAwayFromZero  Round away from zero. This is the equivalent of RoundUp if the input is positive, or RoundDown if the input is negative. 
RoundDown RoundDown RoundDown  Round towards negative infinity. (Return the largest integer, increment, or significant digit which does not exceed the input.) 
RoundHalfAwayFromZero RoundHalfAwayFromZero RoundHalfAwayFromZero  Round to the integer, increment, or significant digit that is closest to the input. If the input is exactly halfway between the possible outputs, this is the equivalent of RoundAwayFromZero. 
RoundHalfDown RoundHalfDown RoundHalfDown  Round to the integer, increment, or significant digit that is closest to the input. If the input is exactly halfway between the possible outputs, this is the equivalent of RoundDown. 
RoundHalfToEven RoundHalfToEven RoundHalfToEven  Round to the integer, increment, or significant digit that is closest to the input. If the input is exactly halfway between the possible outputs, round to the nearest even output. 
RoundHalfToOdd RoundHalfToOdd RoundHalfToOdd  Round to the integer, increment, or significant digit that is closest to the input. If the input is exactly halfway between the possible outputs, round to the nearest odd output. 
RoundHalfTowardsZero RoundHalfTowardsZero RoundHalfTowardsZero  Round to the integer, increment, or significant digit that is closest to the input. If the input is exactly halfway between the possible outputs, this is the equivalent of RoundTowardsZero. 
RoundHalfUp RoundHalfUp RoundHalfUp  Round to the integer, increment, or significant digit that is closest to the input. If the input is exactly halfway between the possible outputs, this is the equivalent of RoundUp. 
RoundTowardsZero RoundTowardsZero RoundTowardsZero  Round towards zero. This is the equivalent of RoundDown if the input is positive, or RoundUp if the input is negative. 
RoundUp RoundUp RoundUp  Round towards infinity. (Return the smallest integer, increment, or significant digit which is not less than the input.) 