I need to round any non-integers up to the nearest integer, regardless of whether the number after the decimal place is >5 or not.
1 Answer
You can make use of the ceil($value)
function in PHP to round up.
Similarly you can make use of floor()
for rounding down.
-
Similarly use floor() for rounding down regardless. Ceil == ceiling btw.– RossNov 2, 2008 at 16:36