Navigation:  Reference > Functions By Category > Peek and Poke >

PeekDouble()

Previous pageReturn to chapter overviewNext page

Retrieve the value of one or more DWORDs from the memory buffer pointed by <pMem> starting at the position <nShift>.

 

Syntax:

PeekDouble(<pMem>,[[@]<nShift>]) -> <nFloat64>

PeekDouble(<pMem>,[[@]<nShift>], <nItems>) -> <aFloat64>

 

Parameters:

<pMem>

Base pointer to the memory buffer.

 

<nShift>

Zero based starting position within <pMem>. Is this parameter is passed by reference will be increased with the number of bytes retrieved, to reuse it in subsequent calls to Peek...() functions.

 

<nItems>

Number of double values to read and store as numeric elements of the returned array.

 

Return Value:

Depending on the syntax used PeekDouble() can return the following values:

<nValue>     Numeric value of the double pointed by <pMem> + <nShift>
<aBytes>     Array of <nItems> elements containing the retrieved doubles.