math.trunc()

math.trunc(x:Real) → Integral

Truncates x to the nearest Integral toward 0. Uses the __trunc__ magic method.