Language

RoundOptions Enum

Definition

public enum RoundOptions
type RoundOptions = 
Inheritance
RoundOptions

Fields

Name Value Description
Up 0

Rounding mode to round away from zero.

Android reference for android.icu.math.BigDecimal.ROUND_UP.

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.

Down 1

Rounding mode to round towards zero.

Android reference for android.icu.math.BigDecimal.ROUND_DOWN.

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.

Ceiling 2

Rounding mode to round to a more positive number.

Android reference for android.icu.math.BigDecimal.ROUND_CEILING.

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.

Floor 3

Rounding mode to round to a more negative number.

Android reference for android.icu.math.BigDecimal.ROUND_FLOOR.

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.

HalfUp 4

Rounding mode to round to nearest neighbor, where an equidistant value is rounded up.

Android reference for android.icu.math.BigDecimal.ROUND_HALF_UP.

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.

HalfDown 5

Rounding mode to round to nearest neighbor, where an equidistant value is rounded down.

Android reference for android.icu.math.BigDecimal.ROUND_HALF_DOWN.

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.

HalfEven 6

Rounding mode to round to nearest neighbor, where an equidistant value is rounded to the nearest even neighbor.

Android reference for android.icu.math.BigDecimal.ROUND_HALF_EVEN.

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.

Unnecessary 7

Rounding mode to assert that no rounding is necessary.

Android reference for android.icu.math.BigDecimal.ROUND_UNNECESSARY.

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.

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