<?
$c = 12.3456;
echo number_format($c, 2);
?>
http://php.net/number_format
> -----Original Message-----
> From: Tim Olsen [mailto:[EMAIL PROTECTED]]
> Sent: 18 iulie 2001 10:52
> To: [EMAIL PROTECTED]
> Subject: [PHP] formating numbers to two decimal points - money - best
> ways
>
>
> Anyone have functions for formatting numbers being multiplied
> by variables
> and whatnot to two decimal points - rounded up? As for
> displaying total
> cost, etc?
--
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]