figures question
| From: | JeRRy | Date: | Sat, 27 Sep 2003 13:31:11 +0000 |
| Subject: | figures question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-30731@lists.php.net to get a copy of this message | ||
Hi,
I have in my database a total value which looks like
this.
0.00000
If the figure is more than 9.99999 it goes to 10.00000
and so on.. The first 2 digits after the . is cents
and the following is part of a cent.
So it appears in the database for example like 7.51234
.. But I want to display it on a PHP page as 7.51 and
forget the remaining digits. Is it possible? I want
to leave the digits in place on the database but have
the output as the dollar value and 2 cent values.
Like This:
If under $10
$9.75
If over $10
$10.75
If over $100
$100.80
and so on, is it possible?
Thanks!
http://search.yahoo.com.au - Yahoo! Search
- Looking for more? Try the new Yahoo! Search