RoundOptions Enum

Definition

Enumerates values returned by several types and taken as a parameter of several types.

public enum RoundOptions
type RoundOptions = 
Inheritance
RoundOptions

Fields

Ceiling 2

Rounding mode to round towards positive infinity.

Down 1

Rounding mode where the values are rounded towards zero.

Floor 3

Rounding mode to round towards negative infinity.

HalfDown 5

Rounding mode where values are rounded towards the nearest neighbor. Ties are broken by rounding down.

HalfEven 6

Rounding mode where values are rounded towards the nearest neighbor. Ties are broken by rounding to the even neighbor.

HalfUp 4

Rounding mode where values are rounded towards the nearest neighbor. Ties are broken by rounding up.

Unnecessary 7

Rounding mode where the rounding operations throws an ArithmeticExceptionfor the case that rounding is necessary, i.e.

Up 0

Rounding mode where positive values are rounded towards positive infinity and negative values towards negative infinity.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to