ChrisAndrews
asked on
rounding up
Hi,
I am trying to round up to a number to two digits after the decimal, so:
4.331 becomes 4.34
'round' rounds to the closest (results are 4.33)
and using 'ceil' goes to the closest whole number, ie 5, there doesn't seem to be a way to set 'ceil' to round up to two digits after the decimal.
How do I do this?
Thanks,
Chris.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, that works :) It seems rather odd to me that php doesn't have a function that will just round up to the nearest .xx
Chris