PHP 4.0 Bug #8020 Updated: return wrong value
| From: | stas@php.net | Date: | Wed, 29 Nov 2000 10:59:21 +0000 |
| Subject: | PHP 4.0 Bug #8020 Updated: return wrong value | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39490@lists.php.net to get a copy of this message | ||
ID: 8020
Updated by: stas
Reported By: bate@bate.de
Status: Closed
Bug Type: Strings related
Assigned To:
Comments:
PHP does not support numbers so long. You may try to use new
GMP extension or format the number manually.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-28 19:40:05] bate@bate.de
<?
$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]
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8020