Skip to content
Try Kata

native.F32

Native methods on F32.

All modules · Writing docstrings

func to_int(self: F32): Int

Truncate toward zero through a signed 128-bit intermediate. Out-of-range values saturate to its limits, and NaN becomes zero.

func to_float(self: F32): Float

Convert to the language’s 64-bit Float representation.

func hash(self: F32): U64

Return the runtime hash. Hash values are not a stable serialization format.