📅  最后修改于: 2022-03-11 15:02:11.385000             🧑  作者: Mango
using Math.floor
console.log(Math.floor(5.95));
// expected output: 5
console.log(Math.floor(5.05));
// expected output: 5
console.log(Math.floor(5));
// expected output: 5
console.log(Math.floor(-5.05));
// expected output: -6