Home / Docs / Standard library / Prelude

nan

A function of the prelude, in scope in every module. Edition 0.3, 0.4, 0.5 preview.

una
pub nan() -> F64
  ensures result.is_nan()

The canonical NaN, 0x7FF8000000000000: the one NaN of F64 (spec/29 §3).

Specification

Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.