Bug #8020 [PATCH]: return wrong value
| From: | JustPlayingYRU2@gmail.com | Date: | Wed, 03 Aug 2022 21:33:21 +0000 |
| Subject: | Bug #8020 [PATCH]: return wrong value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-242122@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=8020&edit=1
ID: 8020
Patch added by: JustPlayingYRU2@gmail.com
Reported by: bate at bate dot de
Summary: return wrong value
Status: Closed
Type: Bug
Package: Strings related
Operating System: SuSE 7.0
PHP Version: 4.0.0
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Generate int/float/null instead of integer/double/NULL in docgen.php
On GitHub: https://github.com/php/doc-base/pull/45
Patch: https://github.com/php/doc-base/pull/45.patch
Previous Comments:
------------------------------------------------------------------------
[2000-11-29 05:59:21] stas@php.net
PHP does not support numbers so long. You may try to use new
GMP extension or format the number manually.
------------------------------------------------------------------------
[2000-11-28 19:40:05] bate at bate dot 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]
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=8020&edit=1