|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8020 return wrong value
Submitted: 2000-11-28 19:40 UTC Modified: 2000-11-29 05:59 UTC
From: bate at bate dot de Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.0 OS: SuSE 7.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 + 30 = ?
Subscribe to this entry?

 [2000-11-28 19:40 UTC] bate at bate dot de
echo "Total: \$".number_format($TOTAL,2,',','.'); 

return =>

Total: $1.999.999.999.999.999.859.514.578.,00 

and he doest round correct.

Same prob under 4.0.3pl1

cu Bat[e]


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-29 05:59 UTC]
PHP does not support numbers so long. You may try to use new
GMP extension or format the number manually. 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Feb 23 11:01:29 2020 UTC