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