PHP保留两位小数且不四舍五入

2019-01-18 By
cate
From 本站原创
17.12K

PHP保留两位小数且不四舍五入,在开发过程中,我们经常需要处理一些金额数值,一般将其格式化为保留两位小数点。 在PHP中,有number_format(), round()这么两个函数可以使用。

Still Have Questions?

Our customer care team is here for you!

Contact Us
faq