<? echo "\$".number_format($price,2); ?>
> -----Original Message-----
> From: Andonny [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 19, 2001 11:21 PM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]