OxL Reference

method str.parseFloat

Parses a decimal number.

Example:

oxl✓ checked in CI
fn main() io {
  print("{"2.5".parseFloat()!}")
}
Output
2.5
pub(api) fn parseFloat() -> f64 | ParseError

Since. 1.0.0-beta

Returns

f64

Errors

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:778

See also