---
title: "parse_f32"
url: https://una-lang.org/en/docs/std/prelude/parse_f32/
release: v0.4.0
edition: "0.5 preview"
source: https://github.com/una-lang/una/blob/v0.4.0/docs/std/listing.json
---

# parse_f32

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

- [`spec/29 §18`](https://una-lang.org/en/docs/spec/29-numerics/18-f32-and-the-finite-kinds/#s18)

Generated from the standard modules of una v0.4.0 ([`docs/std/listing.json`](https://github.com/una-lang/una/blob/5fec93d88932b333feec25e589355a2cb34c37b5/docs/std/listing.json), which is not part of the specification). The specification governs: [`spec/14 §1`](https://una-lang.org/en/docs/spec/14-standard-library/#s1).
