RE: [PHP] 2 decimal places
| From: | Jack Dempsey | Date: | Thu, 20 Sep 2001 02:24:00 +0000 |
| Subject: | RE: [PHP] 2 decimal places | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67929@lists.php.net to get a copy of this message | ||
look into printf and number_format
-----Original Message-----
From: Kurth Bemis [mailto:kurth@usaexpress.net]
Sent: Wednesday, September 19, 2001 10:23 PM
To: php-general@lists.php.net
Subject: [PHP] 2 decimal places
i'm looking for a php function to add 2 decimal place sto a number. if the
number already have one decimal place then one more zero should be added to
make it two decimal places....anyone know of a quick way to do this?
~kurth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net