On Wed, 18 Jul 2001 17:21, Tim Olsen wrote:
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 has :-) have a look at the mathematical functions.
?
$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
2 matches
Mail list logo