问题标签 [roundup]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
41 问题
0
投票
2
回答
22
浏览
php - 如何在 PHP 中舍入第二个数字?
我想四舍五入到第二个数字。例如,数字是 12250,我想将其四舍五入为 12200。在 PHP 中,我知道有 floor()、ceil() 函数来完成这项工作,但这仅适用于浮点数。
有人可以帮忙吗?