Condividi tramite


BigDecimal.LongValueExact Method

Definition

Converts this BigDecimal to a long.

[Android.Runtime.Register("longValueExact", "()J", "GetLongValueExactHandler", ApiSince=24)]
public virtual long LongValueExact ();
[<Android.Runtime.Register("longValueExact", "()J", "GetLongValueExactHandler", ApiSince=24)>]
abstract member LongValueExact : unit -> int64
override this.LongValueExact : unit -> int64

Returns

A long equal in value to this.

Attributes

Remarks

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

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

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