NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BitConverter.ToSingle

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;

Parameters

value
An array of unsigned bytes.
startIndex
A position within the value at which to begin.

Return Value

A single-precision floating point number formed from four unsigned bytes beginning at startIndex.

Exceptions

Exception Type Condition
ArgumentException value is null.
ArgumentException startIndex is a value that results in invalid access to the array.

See Also

BitConverter Class | BitConverter Members | System Namespace