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. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php