How do you truncate all numbers after a decimal number in Python 3?
For example, we trim 3.444 equal to 3.
Converting it to int:
int
>>> num = 3.444 >>> int(num) 3
>>> import math >>> num = 3.4444 >>> math.trunc(num) 3