Freigeben über


BigDecimal.IntValueExact Method

Definition

Converts this BigDecimal to an int.

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

Returns

An int equal in value to this.

Attributes

Remarks

Converts this BigDecimal to an int. If the BigDecimal has a non-zero decimal part or is out of the possible range for an int (32-bit signed integer) result then an ArithmeticException is thrown.

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

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