Method ToDouble
ToDouble()
Converts value of this instance to double precision floating point
number.
Declaration
public virtual double ToDouble()
Returns
Type | Description |
---|---|
Double | Value of this instance as double precision floating point number. |
Remarks
This conversion is valid only for numeric instances such as
IntegerValue, LongValue,
DoubleValue, NumberValue or instances
of StringValue containing valid numeric
representation.
Exceptions
Type | Condition |
---|---|
InvalidCastException | If this instance is not numeric and not StringValue. |
OverflowException | In a checked context, if this instance is numeric and represents value less than MinValue or greater than MaxValue |
FormatException | If this instance is StringValue and it does not contain valid numeric representation. |