EAPUtilToDouble Method (Object) |
Convert an object to a double value handling the case when the object is DBNull.
When the object is null, the return value is the value of the defaultValue parameter.
Note that currently an unparseable value (e.g. "3.5abc") will cause an exception to be thrown.
Use
ToDoubleSafe(Object, Double) to guarantee no exception is thrown.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static double ToDouble(
Object value
)
Public Shared Function ToDouble (
value As Object
) As Double
Parameters
- value
- Type: SystemObject
The object to convert.
Return Value
Type:
DoubleThe converted object as a double.
See Also