Converts four bytes beginning at the specified index in the specified array into a single-precision floating point number.
[Visual Basic] Public Shared Function ToSingle( _ ByVal value() As Byte, _ ByVal startIndex As Integer _ ) As Single [C#] public static float ToSingle( byte[] value, int startIndex ); [C++] public: static float ToSingle( unsigned char* value[], int startIndex ); [JScript] public static function ToSingle( value : Byte[], startIndex : int ) : float;
A single-precision floating point number formed from four unsigned bytes beginning at startIndex.
Exception Type | Condition |
---|---|
ArgumentException | value is null. |
ArgumentException | startIndex is a value that results in invalid access to the array. |
BitConverter Class | BitConverter Members | System Namespace