int()

Description

Converts a value to the int data type.

Syntax

int(x)

(int)x (C-style type conversion)

Parameter Values

  • x: a value. Allowed data types: any type.

Return Values

  • Data type: int.

See Also

Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.