PHP 4.0 Bug #8020: return wrong value
| From: | bate at bate dot de | Date: | Wed, 29 Nov 2000 00:40:05 +0000 |
| Subject: | PHP 4.0 Bug #8020: return wrong value | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39435@lists.php.net to get a copy of this message | ||
From: bate@bate.de
Operating system: SuSE 7.0
PHP version: 4.0.0
PHP Bug Type: Strings related
Bug description: return wrong value
<?
$TOTAL=1999999999999999999999999999999999999999999999;
echo "Total: \$".number_format($TOTAL,2,',','.');
?>
return =>
Total: $1.999.999.999.999.999.859.514.578.049.071.102.439.861.518.336,00
and he doest round correct.
Same prob under 4.0.3pl1
cu Bat[e]
--
Edit Bug report at: http://bugs.php.net/?id=8020&edit=1