📜  js 四舍五入 - Javascript 代码示例

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

代码示例2
Math.round(3.14159)  // 3
Math.round(3.5)      // 4
Math.floor(3.8)      // 3
Math.ceil(3.2)       // 4