method str.parseInt
Parses a decimal integer.
Example:
fn main() io {
print("{"123".parseInt()!} {"x".parseInt() is ParseError}")
}Output
123 true
pub(api) fn parseInt() -> i64 | ParseErrorSince. 1.0.0-beta
Returns
i64
Errors
ParseError@error
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:766