note 9266 added to round
| From: | paul at netkick dot com | Date: | Wed, 25 Oct 2000 14:23:28 +0000 |
| Subject: | note 9266 added to round | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6885@lists.php.net to get a copy of this message | ||
For cross compatibility between PHP 3.x and 4.x, I would suggest *not* using the precision
parameter. Just perform your own precision function by mutliplying the number by 100 (or whatever),
rounding it, then dividing it back out to get the decimals you want.
http://www.php.net/manual/function.round.php