Question about dopping zeros
| From: | Ethan Nelson | Date: | Thu, 25 Jan 2001 19:10:18 +0000 |
| Subject: | Question about dopping zeros | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36685@lists.php.net to get a copy of this message | ||
I need to format decimals that are percise to the second place in the
following format:
4.00 to 4
4.50 to 4.5
4.25 to 4.25
As you can see, I just want to drop the trailing zeros, and if necessary the
decimal.
Thanks
___________________________________
Ethan Nelson, Systems Administrator
Net Solutions, LLC
840 Lawrence Street
Eugene, OR 97401
enelson@netsolutionsllc.com
http://www.netsolutionsllc.com
Voice +1 541 345-7087
Fax +1 541 485-5519