A long float number.

From: Date: Fri, 01 Aug 2003 21:37:50 +0000
Subject: A long float number.
Groups: php.general 
Request: Send a blank email to php-general+get-158006@lists.php.net to get a copy of this message
How do I prevent a long float number end up like this after/during a calculation? 8.5E-05 //A number error occurs. I even tried keeping the whole calculation in 1 line: //Get the weight (in pounds) of a O-Ring. $N = round((0.03613 * 1.85 * ((pow(pi(), 2) * pow(($iDia[$d] - $oDia[$d]), 2) * ($iDia[$d] + $oDia[$d])) / 32)), 6); Thanks in advance! -- - Zavaboy zavaboy@hotmail.com www.zavaboy.com

« previous php.general (#158006) next »