From:             [EMAIL PROTECTED]
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



-- 
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]

Reply via email to