remove decimal places in python code example
Example 1: how to remove all decimals from a number python
number = 3.908753
number = (int(number))
print(number)
>>> 3
Example 2: remove decimal python
# Truncates a double to an int
i = 10.0
k = int(i)
# i = 10.0
# k = 10