Python int() Function
Definition and Usage
The int()
function converts the specified
value into an integer number.
Syntax
int(value, base)
Parameter Values
Parameter | Description |
---|---|
value | A number or a string that can be converted into an integer number |
base | A number representing the number format. Default value: 10 |