Re: calculations

From: Date: Thu, 03 Jun 2004 09:31:10 +0000
Subject: Re: calculations
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-23912@lists.php.net to get a copy of this message
Svensson, B.A.T. (HKG) wrote:
How did you come to the conclusion it should be 452? -----Original Message----- From: Lenny Davila To: 'php windows' Sent: 3-6-2004 3:23 Subject: [PHP-WIN] calculations I have in my php code: $galleryRow = 3; $maxwidth = 144; $borderwidth = 2; $imagediv = ($maxwidth + (2 * $borderwidth)); $contentwidth = ($imagediv * 3); The output of contentwidth should be : 452 But it comes out as 444. Does anyone know what I am doing wrong? I am sorry, but substituting the names by their values you get
$imagediv = ( 144 + (2*2)) = 144 + 4 = 148 $contentwidth = (148 *3) = 444 Like Svensson says, how do you get 452 ? If you calculate 452/3 you get 150.(6)

« previous php.windows (#23912) next »