method str.parseFloat
Parses a decimal number.
Example:
fn main() io {
print("{"2.5".parseFloat()!}")
}Output
2.5
pub(api) fn parseFloat() -> f64 | ParseErrorSince. 1.0.0-beta
Returns
f64
Errors
ParseError@error
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:778