print two Digits after decimal point

From: Date: Mon, 20 Aug 2001 06:21:28 +0000
Subject: print two Digits after decimal point
Groups: php.general 
Request: Send a blank email to php-general+get-63458@lists.php.net to get a copy of this message
Hi, I need to print on the webpage two digits after the decimal point. This is what I have at the moment: <? print "$$price" ?> I need to have for example $5.00 not $ 5 as it does at the moment. Thanks for your help Andonny

« previous php.general (#63458) next »