How to convert float to integer in Python?

PythonServer Side ProgrammingProgramming

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

>>> a=10.56
>>> int(a)
10
raja
Published on 15-Feb-2018 07:53:47
Advertisements