On Monday 24 June 2002 11:34, Phil Schwarzmann wrote:
> I want to round a number to the nearest decimal place...
> if the number is 4.623, I want it to display 4.6
> if the number is 2.36, I want it to display 2.7
You don't really mean 2.36 --> 2.7 ??
> Is there a function that does this? round(), ceil(), floor() don't do
> this and I've checked through all the math functions in my handy-dandy
> "PHP Functions" reference book.
round() seems to work. What's the problem you're having?
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
That's no moon...
-- Obi-wan Kenobi
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php