readFloat method

double readFloat()

Implementation

double readFloat() {
  final value =
      _byteBuffer.buffer.asByteData().getFloat32(_position, Endian.big);

  _position += 4;

  // Round the float to 8 decimal places after reading
  return double.parse(value.toStringAsFixed(8));
}