MemoryBlock.DoubleValue

From Xojo Documentation

Method

MemoryBlock.DoubleValue(Offset as Integer) As Double

Supported for all project types and targets.

Gets or sets a Double value. Offset is in bytes from the beginning of the MemoryBlock.

Sample Code

This example sets a double value and then accesses it.

Var d As Double
Var m As New MemoryBlock(8)
m.DoubleValue(0) = 3.14159265358979323846264338327950

d = m.DoubleValue(0)