getFloat64 method

double getFloat64(
  1. int offset, [
  2. Endian endian = Endian.little
])

Reads 8-bytes as a double precision floating point value.

The offset must satisy the relations 0offsetoffset+8this.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);
}