Justin Patrin wrote:
number_format($number, 2);


Does not work. Desired results:


1000 should return 1,000 1000.5 should return 1,000.5 1000.25 should return 1,000.25 so on.

Actual results:

1000    => 1,000.00
1000.5  => 1,000.50
1000.25 => 1,000.25

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to