Creates a 64-bit floating point Relish value.
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 JavaScript number
RelishF64 value
import { F64, encode } from '@grounds/core';const euler = F64(2.71828);encode(euler).match( (bytes) => console.log('F64 encoded:', bytes), (error) => console.error(error)); Copy
import { F64, encode } from '@grounds/core';const euler = F64(2.71828);encode(euler).match( (bytes) => console.log('F64 encoded:', bytes), (error) => console.error(error));
F32 for 32-bit floating point
Creates a 64-bit floating point Relish value.
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.