RE: [PHP] print two Digits after decimal point

From: Date: Mon, 20 Aug 2001 06:13:54 +0000
Subject: RE: [PHP] print two Digits after decimal point
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63459@lists.php.net to get a copy of this message
<? echo "\$".number_format($price,2); ?> > -----Original Message----- > From: Andonny [mailto:wje@multiline.com.au] > Sent: Sunday, August 19, 2001 11:21 PM > To: php-general@lists.php.net > Subject: [PHP] print two Digits after decimal point > > > 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 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#63459) next »