RE: [PHP] Changing numbers
| From: | Jay Blanchard | Date: | Mon, 21 Jul 2003 18:20:00 +0000 |
| Subject: | RE: [PHP] Changing numbers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-156106@lists.php.net to get a copy of this message | ||
[snip]
I would like it at least 2 decimal places.. So, 5.2670 would be 5.267
not
5.27:
[/snip]
RTFM for formatted string http://us3.php.net/sprintf or
http://us3.php.net/printf
HTH