On Fri, 27 Aug 2004 18:48:16 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > 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 >
OIC. Yep, I don't think you can do that with number_format. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php