Share via


BigDecimal.RoundHalfDown Field

Definition

Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down.

[Android.Runtime.Register("ROUND_HALF_DOWN")]
public const Java.Math.RoundOptions RoundHalfDown = 5;
[<Android.Runtime.Register("ROUND_HALF_DOWN")>]
val mutable RoundHalfDown : Java.Math.RoundOptions

Field Value

Value = 5
Attributes

Remarks

Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down. Behaves as for ROUND_UP if the discarded fraction is > 0.5; otherwise, behaves as for ROUND_DOWN.

This member is deprecated. Use RoundingMode#HALF_DOWN instead.

Java documentation for java.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.

Applies to

See also