Hi-
How can I control the decimal places returned by an arthimetic function?
I would like this divsion function to only return two decimal places
(rounded up).
$calcsize = $value / $oneGig;
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
You can use the format() function for this.
http://www.php.net/format
- Original Message -
From: Max Clark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 13, 2002 1:10 PM
Subject: [PHP] newbie - decimal places in arthimetic functions
Hi-
How can I control
] newbie - decimal places in arthimetic functions
You can use the format() function for this.
http://www.php.net/format
- Original Message -
From: Max Clark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 13, 2002 1:10 PM
Subject: [PHP] newbie - decimal places
3 matches
Mail list logo