Click or drag to resize
ConvertToBoolean Method (Double)
Converts the value of the specified double-precision floating-point number to an equivalent Boolean value.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static bool ToBoolean(
	double value
)

Parameters

value
Type: SystemDouble
The double-precision floating-point number to convert.

Return Value

Type: Boolean
true if value is not zero; otherwise, false.
See Also