note 32744 deleted from function.number-format by sniper
| From: | sniper@php.net | Date: | Tue, 30 Sep 2003 01:34:23 +0000 |
| Subject: | note 32744 deleted from function.number-format by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57360@lists.php.net to get a copy of this message | ||
Note Submitter: user@NOSPAM.fakedomain.com
----
It seems that numberformat of a calculated value can often return -0.00 if it should be zero, but
there are additional decimal places. I'd say it should do a round, but so be it. Just
something to watch out for when dealing with numbers. Instead, do a number_format (round ($number,
2, 2);