displaying numbers up to 2 places of decimal.
| From: | Binay | Date: | Tue, 11 Nov 2003 05:42:19 +0000 |
| Subject: | displaying numbers up to 2 places of decimal. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-169139@lists.php.net to get a copy of this message | ||
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