Re: typecasting .. easy?
| From: | bbonkosk at tampabay dot rr dot com | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: typecasting .. easy? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152145@lists.php.net to get a copy of this message | ||
This is really a formatting issue, not type casting, so loook in those areas of
the manual. Perhaps start around:
http://us2.php.net/manual/en/function.printf.php
-Brad
> $amount is a calculated number
>
> If $amount equals for example 52., how do I get that to print as "52.00"
> similarly, if amount = 52.5 how do I get that to print as "52.50"
>
> Thanks!
> (looked at all sort of type casting manual stuff to no avail)
>