次の方法で共有


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

Name Value Description
Up 0

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

Down 1

Rounding mode where the values are rounded towards zero.

Ceiling 2

Rounding mode to round towards positive infinity.

Floor 3

Rounding mode to round towards negative infinity.

HalfUp 4

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

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.

Unnecessary 7

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

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