Re: [PHP] changed number_format function

2004-08-27 Thread Justin Patrin
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. > > Actu

Re: [PHP] changed number_format function

2004-08-27 Thread Marek Kilimajer
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/) T

Re: [PHP] changed number_format function

2004-08-27 Thread Justin Patrin
On Fri, 27 Aug 2004 14:06:56 +0530, Ma SivaKumar <[EMAIL PROTECTED]> wrote: > A copy of php manual I downloaded a year back > has the following about the behaviour of > number_format function > > $number = 1234.56; > // english notation (default) > $english_format_number = > number_format($number

Re: [PHP] changed number_format function

2004-08-27 Thread Ramil Sagum
On Fri, 27 Aug 2004 14:06:56 +0530, Ma SivaKumar <[EMAIL PROTECTED]> wrote: > > The latest on-line version is changed as > below > $number = 1234.56; > // english notation (default) > $english_format_number = > number_format($number); > // 1,234 > > What is the best way to format numbers to put