Re: About floats too
| From: | Andrei Zmievski | Date: | Wed, 21 Jun 2000 13:28:47 +0000 |
| Subject: | Re: About floats too | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2486@lists.php.net to get a copy of this message | ||
On Wed, 21 Jun 2000, Jari Kohvakka wrote:
> If I have a price, say 3.5423, how do I round it to 3.50? round() gives me
> 4.0 and (integer) 3. Any good manuals on this?
In php 4.0.0 and higher, round() function takes a second parameter that
tells it what precision to round to.
-Andrei
* The future is not what it used to be. *