tags:

views:

151

answers:

1

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. Thanks!

+10  A: 

use ceil($value)

JimmyJ
wow, i feel incredibly stupid for not knowing that. thanks.
Similarly use floor() for rounding down regardless. Ceil == ceiling btw.
Ross