PHP 4.0 Bug #5500: Round() precision doesn´t work
| From: | marten at jerbro dot se | Date: | Tue, 11 Jul 2000 08:25:36 +0000 |
| Subject: | PHP 4.0 Bug #5500: Round() precision doesn´t work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-24007@lists.php.net to get a copy of this message | ||
From: marten@jerbro.se
Operating system: Linux - Debian Slink
PHP version: 4.0 Latest CVS (11/07/2000)
PHP Bug Type: Misbehaving function
Bug description: Round() precision doesn´t work
If the php.ini precision directive is set to 18 or more, second argument to round() stops working.
<?
echo round(1.95583, 2); // Should output 1.96
?>
Snippet outputs: 1.9599999999999999645