PDA

View Full Version : Resolved Rounding Up?



Rocky!
01-03-2009, 05:21 AM
Hi all,

I have been trying to create a script which if the number is between 1-10 it becomes 10, 11-20=20, 21-30=30 etc.

I know how to use the round() function, but I want to round the number UP, instead of going by 0.5. Is this possible?

:confused::confused::confused:

Thanks,
Rocky.

EDIT: I know you can use if(something < 10) or whatever, but I do not want to write a million IF statements...

mada9369
01-03-2009, 05:24 AM
ceil();

?

Rocky!
01-03-2009, 05:26 AM
Thankyou for the really quick reply Mada, works great, thanks!:)