Computer >> Computer tutorials >  >> Programming >> Python

How to convert float to integer in Python?


Python has a built-in function int() that helps to convert float object to integer.

>>> a=10.56
>>> int(a)
10