Create a floating-point number type with optional precision quantization.
Without precision, floats are encoded as full 32-bit IEEE 754 values.
With precision specified, values are quantized and encoded as integers,
which is more compact and ensures consistent rounding across platforms.
Parameters
Optionaloptions: {precision?:string|number}
Optional precision settings
Optionalprecision?: string|number
Quantization step size (e.g., 0.01 for 2 decimal places)
Create a floating-point number type with optional precision quantization.
Without precision, floats are encoded as full 32-bit IEEE 754 values. With precision specified, values are quantized and encoded as integers, which is more compact and ensures consistent rounding across platforms.