typecasting .. easy?

From: Date: Thu, 19 Jun 2003 11:41:13 +0000
Subject: typecasting .. easy?
Groups: php.general 
Request: Send a blank email to php-general+get-152143@lists.php.net to get a copy of this message
$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)

« previous php.general (#152143) next »