ArrowFloatingValue.float64 constructor
- double value
Implementation
factory ArrowFloatingValue.float64(double value) {
// Read as two uint32 halves: getInt64 is unavailable on the web.
final data = ByteData(8)..setFloat64(0, value, Endian.little);
final low = BigInt.from(data.getUint32(0, Endian.little));
final high = BigInt.from(data.getUint32(4, Endian.little));
return ArrowFloatingValue(64, (high << 32) | low);
}