The math.trunc() function is used to truncate a number to its integer part.  It simply removes the decimal part of the given number, returning the integer.  

Syntax:
math.trunc(x)

Where,  parameter is the number to be truncated.

If the input is a float (decimal) number, the math.trunc() function removes the digits after the decimal point and returns the integer. If the input is an integer, the  function simply returns the same integer.

ExampleEdit & Run
import math

print( math.trunc(5) )

print( math.trunc(6.8) )

print( math.trunc(-6.8) )

print( math.trunc(100.2) )

print( math.trunc(3.142) )
Output:
56-61003[Finished in 0.011986568104475737s]