📅  最后修改于: 2022-03-11 15:03:12.278000             🧑  作者: Mango
//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