【发布时间】:2020-04-08 04:56:06
【问题描述】:
如何使用 jquery 对不同类型的货币进行四舍五入?我想做的是;
10.30 → 10 //Below .5 will round down
10.60 → 11 //After .5 will round up
849.95 → 850
1,022.20 → 1022
【问题讨论】:
-
请在提出新问题前进行搜索。舍入是一个简单的概念,已经有许多非常相似的问题。
标签: javascript jquery math currency