Parsing
parsenum
Convert a value to num. Fails if the value is not numeric.
Syntax
define num x is parsenum(<value>);
How she behaves
- Typical source is readln, which is always a string.
- Prefer tryparsenum when input might be invalid.
Example
define num x is parsenum(readln);