Re: Making PHP Hold the hundreth place, instead of dropping the 0
| From: | Cynic | Date: | Thu, 11 Jan 2001 22:11:13 +0000 |
| Subject: | Re: 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-34113@lists.php.net to get a copy of this message | ||
number_format()
At 16:09 11.1. 2001, JB wrote the following:
--------------------------------------------------------------
>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
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz