📜  仅获取整数而不是十进制 js - Javascript 代码示例

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

代码示例1
var n = 5/3
n = Math.floor(n)
//This will return 1. 
//Math.floor returns a number less than or equal the number given