getFloat64 method
Reads 8-bytes
as a double precision floating point
value.
The offset
must satisy the relations 0
≤ offset
≤ offset+8
≤ this.length
.
final Buffer buffer = Buffer.fromList([234, 46, 68, 84, 251, 33, 9, 64]);
final double value = buffer.getFloat64(0);
print(value); // 3.14159265359
Implementation
double getFloat64(final int offset, [final Endian endian = Endian.little]) {
return asByteData().getFloat64(offset, endian);
}