RE: [PHP] 2 decimal places
| From: | Boget, Chris | Date: | Tue, 25 Sep 2001 16:56:42 +0000 |
| Subject: | RE: [PHP] 2 decimal places | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-68734@lists.php.net to get a copy of this message | ||
> What if I want to pad a number with zeros in the other
> direction? I.E:
> 524 becomes 00524
printf() / sprintf() is your friend.
Chris