int

Transforms a value into a Integer. Automatically extracts the first Integer of a String.
int($data , mode_us = False ) : Integer
$data.int( mode_us = False ) : Integer
Parameters
$data String | List | Dict | Int | Float | Boolean
mode_us Boolean

If set to True, then commas are interpreted as thousands separators.

See also
Examples

How to extract an Integer from a String