Export (0) Print
Expand All

BitConverter.ToDouble Method

Returns a double-precision floating point number converted from eight bytes at a specified position in a byte array.

[Visual Basic]
Public Shared Function ToDouble( _
   ByVal value() As Byte, _
   ByVal startIndex As Integer _
) As Double
public static double ToDouble(
 byte[] value,
 int startIndex
public: static double ToDouble(
 unsigned char value __gc[],
 int startIndex
public static function ToDouble(
   value : Byte[],
 startIndex : int
) : double;


An array of bytes.
The starting position within value.

Return Value

A double precision floating point number formed by eight bytes beginning at startIndex.


Exception Type Condition
ArgumentNullException value is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException startIndex is less than zero or greater than the length of value minus 8.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

BitConverter Class | BitConverter Members | System Namespace

© 2015 Microsoft