Re: displaying numbers up to 2 places of decimal.
| From: | Robert Cummings | Date: | Tue, 11 Nov 2003 05:41:48 +0000 |
| Subject: | Re: displaying numbers up to 2 places of decimal. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169140@lists.php.net to get a copy of this message | ||
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 float say 10.12345 i want to display as 10.12 i.e up to 2 places of decimal.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'