Re: converting string to monetary format
| From: | Chris Boget | Date: | Tue, 13 Apr 2004 16:06:16 +0000 |
| Subject: | Re: converting string to monetary format | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183247@lists.php.net to get a copy of this message | ||
> it is number_format http://www.php.net/number_format
<pedantry>
You can also use either of the following:
http://us2.php.net/manual/en/function.sprintf.php
http://us2.php.net/manual/en/function.printf.php
echo sprintf( '%.02f', 59.9 );
</pedantry>
Chris