BitConverter: SingleToInt32Bits

SingleToInt32Bits

Converts the specified single-precision floating point number to 32-bit signed integer.



 Public Function SingleToInt32Bits(
	  ByVal Value As Single ) As Long

Parameters

Value
[ByVal] Single. The number to convert.

Return Values

Long -  A 32-bit signed integer whose value is equivalent to Value.

Remarks

This copies the 32-bit representation of a single-precision floating point number to a 32-bit integer. It does not attempt to convert the value similar to using CLng.

See Also

Project CorLib Overview

Class BitConverter Overview