Displaying Floats
| From: | Ian Wayne | Date: | Sat, 30 Mar 2002 01:24:57 +0000 |
| Subject: | Displaying Floats | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90736@lists.php.net to get a copy of this message | ||
Hi all.
I can't believe I'm stuck on this - seems to me there ought to be an easy
way to do this, but I've been hunting through the literature and I just
can't find it. If anyone can point me in the right direction it'd be much
appreciated...
I have a table of accounts and I want to display all the money amounts to 2
decimal places. How do I do this? Should I use floatval (which I can't use
because it's CVS only)? Or is there some other way?
Many thanks
Ian