Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 337 Convert string to integer, explicit base

See programming-idioms.org:

Code

Runnable Example

The result type of parse_i32 is outcome. An error is returned when parsing fails.
In this case .val will cause a precondition failure.

last changed: 2025-07-10