JavaScript Math.trunc()

Math.trunc(x) returns the integer part of x: