Bug #10537: number_format ing variables breaks totals

From: Date: Sat, 28 Apr 2001 16:07:29 +0000
Subject: Bug #10537: number_format ing variables breaks totals
Groups: php.dev 
Request: Send a blank email to php-dev+get-52712@lists.php.net to get a copy of this message
From: mguertin@macdiscussion.com Operating system: OS X, Linux, Solaris PHP version: 4.0.4pl1 PHP Bug Type: *Function Specific Bug description: number_format ing variables breaks totals I finally got some time to write some code to show this...I may be wrong in assuming the behaviour, but either way the totals are definately wrong. Here's the snippet: $value = 1234; $total = $value + $value; print number_format($value,2) . " + " . number_format($value,2) . " = " . number_format($total,2); print "<BR><BR>"; $value = number_format($value,2); $total = $value + $value; print $value . " + " . $value . " = " . $total; -- Edit Bug report at: http://bugs.php.net/?id=10537&edit=1

« previous php.dev (#52712) next »