ConvertToBoolean Method (Single) |
Converts the value of the specified single-precision floating-point number to an equivalent Boolean value.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static bool ToBoolean(
float value
)
Parameters
- value
- Type: SystemSingle
The single-precision floating-point number to convert.
Return Value
Type:
Booleantrue if
value is not zero; otherwise, false.
See Also