ID: 13537 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Math Functions Operating System: linux PHP Version: 4.0.6 New Comment:
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) Derick Previous Comments: ------------------------------------------------------------------------ [2001-10-04 05:46:25] [EMAIL PROTECTED] try out this code <? $a=number_format(200000); $b=number_format(-2000); $c = $a + $b; echo "$$a is $a <BR> \$b is $b <BR> \$c is $c"; ?> isnt it supposed $c supposed to be 198,000 ? ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13537&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]