RE: [PHP] Making PHP Hold the hundreth place, instead of dropping the 0
| From: | Cal Evans | Date: | Thu, 11 Jan 2001 22:14:00 +0000 |
| Subject: | RE: [PHP] Making PHP Hold the hundreth place, instead of dropping the 0 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34115@lists.php.net to get a copy of this message | ||
I think you are looking for printf. Check the manual. it won't hold it, but
you can make it PRINT it. (Which, I'm asumming, is what you really want)
Cal
http://www.calevans.com
-----Original Message-----
From: JB [mailto:jbeebe@aimsmarketing.com]
Sent: Thursday, January 11, 2001 9:09 AM
To: php-general@lists.php.net
Subject: [PHP] Making PHP Hold the hundreth place, instead of dropping
the 0
Hey,
Simple question. Breifly rumaged through the PHP docs and couldn't find this
answer.
How do i force PHP to hold ending zero in a double?
Ie- if the price is 15.50, php will output it as 15.5 after it does the
math. how do i overcome this. thanks!
jason