method to take only integer part in javascript code example Example: trunc number javascript Math.trunc(number);