note 9266 deleted from function.round by jeroen
| From: | jeroen@php.net | Date: | Sat, 01 Sep 2001 12:43:32 +0000 |
| Subject: | note 9266 deleted from function.round by jeroen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17509@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.