Gemstone Common Library
Show/Hide TOC

# BigEndianToDouble(Byte, Int32) Method

Returns a double-precision floating point number converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.

## Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.158 -- Release Build+8af53c44e6ad1fac543a652d58b46c9843b74b64
C#
View Source Request Example

    public static double ToDouble(
    	byte[] buffer,
    	int startIndex
    )

VB
View Source Request Example

    Public Shared Function ToDouble (
    	buffer As Byte(),
    	startIndex As Integer
    ) As Double

C++
View Source Request Example

    public:
    static double ToDouble(
    	array<unsigned char>^ buffer,
    	int startIndex
    )

JavaScript
View Source Request Example

    Gemstone.BigEndian.ToDouble = function(buffer, startIndex);

#### Parameters

buffer Byte
  An array of bytes (i.e., buffer containing binary image of value).
startIndex Int32
  The starting position within value.

#### Return Value

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

## Exceptions

ArgumentNullException | value is null.
ArgumentOutOfRangeException | startIndex is less than zero or greater than the length of value minus 1.

## See Also

#### Reference

BigEndian Class
ToDouble Overload
Gemstone Namespace