📌  相关文章
📜  如何在 javscript 中舍入数字 - Javascript 代码示例

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

代码示例3
//You can do this instead of using math.round! It is easier to understand using this function!

var x = 5.0364342423;
console.log(x.toFixed(2));
//result should be 5.04