OxL Reference

method str.parseInt

Parses a decimal integer.

Example:

oxl✓ checked in CI
fn main() io {
  print("{"123".parseInt()!} {"x".parseInt() is ParseError}")
}
Output
123 true
pub(api) fn parseInt() -> i64 | ParseError

Since. 1.0.0-beta

Returns

i64

Errors

Effects

none declared (pure unless the body says otherwise)

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

See also