How can I make sure a float will always be rounded up with PHP?

前端 未结 5 615
野趣味
野趣味 2020-12-09 08:33

I want to make sure a float in PHP is rounded up if any decimal is present, without worrying about mathematical rounding rules. This function would work as follows:

5条回答
提交回复
热议问题