:sig
u64 int_val(String s, u32 base = 10)

:params
s : string to be converted
base : number system base (default 10)
return value : a u64 containing the number (0 if no number could be identified).

:see
>string
float_val
String

:content
Extracts an integer value from `s`.

The `base` argument controls which number system is used while parsing. If no usable number can be identified, the function returns `0`.

Related:

- PHP: `intval()`
- JavaScript / Node.js: `Number()` or `parseInt()`
