다음을 통해 공유


BigDecimal.DoubleValue Method

Definition

Converts this BigDecimal to a double.

[Android.Runtime.Register("doubleValue", "()D", "GetDoubleValueHandler", ApiSince=24)]
public override double DoubleValue ();
[<Android.Runtime.Register("doubleValue", "()D", "GetDoubleValueHandler", ApiSince=24)>]
override this.DoubleValue : unit -> double

Returns

A double corresponding to this.

Attributes

Remarks

Converts this BigDecimal to a double. If the BigDecimal is out of the possible range for a double (64-bit signed floating point) result then an ArithmeticException is thrown.

The double produced is identical to result of expressing the BigDecimal as a String and then converting it using the Double(String) constructor; this can result in values of Double.NEGATIVE_INFINITY or Double.POSITIVE_INFINITY.

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

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