Enumerates values returned by several types and taken as a parameter of several types.
Syntax
public enum RoundOptions
Remarks
Members
Member Name | Description |
---|
Ceiling | Rounding mode to round towards positive infinity. For positive values
this rounding mode behaves as BigDecimal.RoundUp, for negative values as
BigDecimal.RoundDown. |
Down | Rounding mode where the values are rounded towards zero. |
Floor | Rounding mode to round towards negative infinity. For positive values
this rounding mode behaves as BigDecimal.RoundDown, for negative values as
BigDecimal.RoundUp. |
HalfDown | Rounding mode where values are rounded towards the nearest neighbor.
Ties are broken by rounding down. |
HalfEven | Rounding mode where values are rounded towards the nearest neighbor.
Ties are broken by rounding to the even neighbor. |
HalfUp | Rounding mode where values are rounded towards the nearest neighbor.
Ties are broken by rounding up. |
Unnecessary | Rounding mode where the rounding operations throws an ArithmeticException for the case that rounding is necessary, i.e. for
the case that the value cannot be represented exactly. |
Up | Rounding mode where positive values are rounded towards positive infinity
and negative values towards negative infinity. |
Requirements
Namespace: Java.Math
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0