BigDecimal.DoubleValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.