Re: [PHP] displaying numbers up to 2 places of decimal.

2003-11-11 Thread Burhan Khalid
Binay wrote: Hi all ! I want to display numbers(integer,float,double) up to 2 places of decimal i.e if number is interger say 10, then i want to display it like 10.00. STFA this question comes up one every 2 days. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com

[PHP] displaying numbers up to 2 places of decimal.

2003-11-10 Thread Binay
Hi all ! I want to display numbers(integer,float,double) up to 2 places of decimal i.e if number is interger say 10, then i want to display it like 10.00. if the number is float say 10.12345 i want to display as 10.12 i.e up to 2 places of decimal. Please help me out Thanks in advance Binay

Re: [PHP] displaying numbers up to 2 places of decimal.

2003-11-10 Thread Robert Cummings
http://www.php.net/manual/en/function.number-format.php Cheers, Rob. On Tue, 2003-11-11 at 00:42, Binay wrote: Hi all ! I want to display numbers(integer,float,double) up to 2 places of decimal i.e if number is interger say 10, then i want to display it like 10.00. if the number is