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)
> 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to