Compartilhar via


BigDecimal.Scale Method

Definition

Returns the scale of this BigDecimal.

[Android.Runtime.Register("scale", "()I", "GetScaleHandler", ApiSince=24)]
public virtual int Scale ();
[<Android.Runtime.Register("scale", "()I", "GetScaleHandler", ApiSince=24)>]
abstract member Scale : unit -> int
override this.Scale : unit -> int

Returns

An int whose value is the scale of this BigDecimal.

Attributes

Remarks

Returns the scale of this BigDecimal. Returns a non-negative int which is the scale of the number. The scale is the number of digits in the decimal part of the number if the number were formatted without exponential notation.

Java documentation for android.icu.math.BigDecimal.scale().

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