Share via


BigDecimal.Precision Method

Definition

Returns the precision of this BigDecimal.

[Android.Runtime.Register("precision", "()I", "GetPrecisionHandler")]
public virtual int Precision ();
[<Android.Runtime.Register("precision", "()I", "GetPrecisionHandler")>]
abstract member Precision : unit -> int
override this.Precision : unit -> int

Returns

the precision of this BigDecimal.

Attributes

Remarks

Returns the precision of this BigDecimal. (The precision is the number of digits in the unscaled value.)

The precision of a zero value is 1.

Added in 1.5.

Java documentation for java.math.BigDecimal.precision().

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