📜  run down number javascript代码示例

📅  最后修改于: 2022-03-11 15:02:11.385000             🧑  作者: Mango

代码示例1
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