BitConverter: ToSingle

ToSingle

Converts an array of bytes to a Single value.



 Public Function ToSingle(
	  ByRef Value ( ) As Byte,
	  ByVal StartIndex As Long ) As Single

Parameters

Value
[ByRef] Byte. The array of bytes used to create a Single from.
StartIndex
[ByVal] Long. The starting byte in the array to create a Single from.

Return Values

Single -  Single data-type representation of the 4 bytes used in the array.

Exceptions

ExceptionCondition
ArgumentExceptionStartIndex is greater than or equal to the length of Value minus 3, and is less than or equal to the length of Value minus 1.
ArgumentNullExceptionValue is uninitialized.
ArgumentOutOfRangeExceptionStartIndex is less than zero or greater than the length of Value minus 1.

See Also

Project CorLib Overview

Class BitConverter Overview