SplitScript reference / f64 / toBits

f64.toBits

Method

f64.toBits() -> u64

Returns this float's exact IEEE-754 bit pattern.

Signed zero and NaN payload bits are preserved. This is a reinterpretation and performs no numeric conversion.

Effects: pure

Runtime behavior: available everywhere; synchronous

Examples

Inspect a 64-bit float

let bits = (-0.0 as f64).toBits()