Creates a schema for 64-bit floating point values.
Represents double-precision IEEE 754 floating point numbers. This matches JavaScript's native number type and preserves full precision for the range of representable values.
A Relish schema for f64 values
import { RF64, createCodec } from '@grounds/schema';const codec = createCodec(RF64());codec.encode(Math.PI).match( (bytes) => console.log('F64 encoded:', bytes), (error) => console.error(error)); Copy
import { RF64, createCodec } from '@grounds/schema';const codec = createCodec(RF64());codec.encode(Math.PI).match( (bytes) => console.log('F64 encoded:', bytes), (error) => console.error(error));
RF32 for 32-bit floating point
Creates a schema for 64-bit floating point values.
Represents double-precision IEEE 754 floating point numbers. This matches JavaScript's native number type and preserves full precision for the range of representable values.