note 23475 deleted from function.round by didou
| From: | didou@php.net | Date: | Wed, 17 Sep 2003 01:02:09 +0000 |
| Subject: | note 23475 deleted from function.round by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56601@lists.php.net to get a copy of this message | ||
Note Submitter: hendrix at zervaas dot info
----
In regards to the previous note, (without considering commas)
You could of course just do:
$moneyStr = sprintf("%01.2lf", $moneyFloat)
Which would turn say, 10.543 into 10.54, or .5 into 0.50