SplitScript reference / f64 / fromBits

f64.fromBits

Function

f64.fromBits(bits: u64) -> f64

Constructs a 64-bit float from its exact IEEE-754 bit pattern.

Every bit pattern is accepted, including signed zero, infinities, and NaN payloads. This is a reinterpretation and performs no numeric conversion.

Parameters

  • bits: The exact IEEE-754 binary64 representation.

Effects: pure

Runtime behavior: available everywhere; synchronous

Examples

Construct the smallest positive 64-bit subnormal

let smallest = f64.fromBits(0x0000000000000001u64)