Java.Math.RoundOptions Enumeration
Enumerates values returned by several types and taken as a parameter of several types.

Syntax

public enum RoundOptions

Remarks

Enumerates values returned by the following: and taken as a parameter of the following: .

Members

Member NameDescription
CeilingRounding mode to round towards positive infinity. For positive values this rounding mode behaves as BigDecimal.RoundUp, for negative values as BigDecimal.RoundDown.
DownRounding mode where the values are rounded towards zero.
FloorRounding mode to round towards negative infinity. For positive values this rounding mode behaves as BigDecimal.RoundDown, for negative values as BigDecimal.RoundUp.
HalfDownRounding mode where values are rounded towards the nearest neighbor. Ties are broken by rounding down.
HalfEvenRounding mode where values are rounded towards the nearest neighbor. Ties are broken by rounding to the even neighbor.
HalfUpRounding mode where values are rounded towards the nearest neighbor. Ties are broken by rounding up.
UnnecessaryRounding 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.
UpRounding 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