Rounding down a float to integer (floor)



let pi = 3.14;
var intvalue = Math.floor( pi );