|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13537 number_format looses value integrity
Submitted: 2001-10-04 05:46 UTC Modified: 2001-10-04 05:53 UTC
From: assid at assid dot com Assigned:
Status: Not a bug Package: *Math Functions
PHP Version: 4.0.6 OS: linux
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:
38 - 32 = ?
Subscribe to this entry?

 [2001-10-04 05:46 UTC] assid at assid dot com
try out this code

$c = $a + $b;
echo "$$a is $a <BR>
\$b is $b <BR>
\$c is $c";

isnt it supposed $c supposed to be 198,000 ?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-04 05:53 UTC]
Not a bug
When the string "200,000" gets converted to a number when adding, it gets converted to 200 ("," is not a valid char in a number string)

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Oct 05 09:05:52 2022 UTC