Click or drag to resize
ConvertToSingle Method (Int32)
Converts the value of the specified 32-bit signed integer to an equivalent single-precision floating-point number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static float ToSingle(
	int value
)

Parameters

value
Type: SystemInt32
The 32-bit signed integer to convert.

Return Value

Type: Single
A single-precision floating-point number that is equivalent to value.
See Also