Re: rounding a number
| From: | Jason Wong | Date: | Mon, 24 Jun 2002 18:33:45 +0000 |
| Subject: | Re: rounding a number | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103642@lists.php.net to get a copy of this message | ||
On Tuesday 25 June 2002 02:16, Jim lucas wrote:
> seems to work fine for me.
> what are your results when you do this? mine are 0.4 and this is what is
> should be. if it were .349 it would round down. isn't this how it should
> work? What were your results?
> > try round(0.35,1)....
I get 0.3 on php 4.0.6.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Elegance and truth are inversely related.
-- Becker's Razor
*/