Home / Docs / Standard library / Prelude

parse_f32

Release v0.4.0Edition 0.5 preview

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

una
pub parse_f32(t: Text) -> F32
  fails ParseError

The F32 that t writes, a JSON number, nan, inf or -inf, rounded once to the nearest F32, or why it writes none (spec/29 §18, ADR 0120 rule 5).

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.