BitConverter: ToDouble

ToDouble

Converts an array of bytes to a Double value.



 Public Function ToDouble(
	  ByRef Value ( ) As Byte,
	  ByVal StartIndex As Long ) As Double

Parameters

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

Return Values

Double -  Double data-type representation of the 8 bytes used in the array.

Exceptions

ExceptionCondition
ArgumentExceptionStartIndex is greater than or equal to the length of Value minus 7, 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