JS Convertir Double a int

var num = 2.9
console.log(parseInt(num, 10)); // 2
Bloody Baboon