📌  相关文章
📜  javascript 除法后两位小数 - Javascript 代码示例

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

代码示例1
Math.round(num * 100) / 100
//OR to be more specific and to ensure things like 1.005 round correctly, use Number.EPSILON :
Math.round((num + Number.EPSILON) * 100) / 100