[thelist] php - rounding decimals help

Phil Cooper Phil.Cooper at zirconsoftware.co.uk
Thu Oct 28 09:06:10 CDT 2004

I'm fairly new to php and am trying to figure out how to round numbers.  What I want to do is the equivalent of the excel roundup function ie round up to one decimal place eg 3.34 is rounded to 3.4.

I've been through the php manual and done a bit of googling and have found the round() and ceil() functions but these don't do what I want.  Can anyone point me in the right direction?



More information about the thelist mailing list