Click or drag to resize

EAPUtilToDouble Method (Object, Double)

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,
	double defaultValue
)

Parameters

value
Type: SystemObject
The object to convert.
defaultValue
Type: SystemDouble
The value to return if the object is DBNull.

Return Value

Type: Double
The converted object as a double.
See Also