📊

整除取整

 
💡
在 JS 中 / 操作符数学运算不是整除
整除四舍五入: 
Math.round(A / B)
整除向上取整: 
Math.ceil(A / B)
整除向下取整: 
Math.floor(A / B)
小数点后保留 n 位: 
number.toFixed(n)s