Share via


BigDecimal.DoubleValue Method

Definition

Converts this BigDecimal to a double.

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

Returns

this BigDecimal converted to a double.

Attributes

Remarks

Converts this BigDecimal to a double. This conversion is similar to the narrowing primitive conversion from double to float as defined in <cite>The Java Language Specification</cite>: if this BigDecimal has too great a magnitude represent as a double, it will be converted to Double#NEGATIVE_INFINITY or Double#POSITIVE_INFINITY as appropriate. Note that even when the return value is finite, this conversion can lose information about the precision of the BigDecimal value.

Java documentation for java.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