[PHP] newbie - decimal places in arthimetic functions

2002-12-13 Thread Max Clark
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:

Re: [PHP] newbie - decimal places in arthimetic functions

2002-12-13 Thread Joseph W. Goff
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

Re: [PHP] newbie - decimal places in arthimetic functions

2002-12-13 Thread Joseph W. Goff
] 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