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 |
More Examples
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.