Re: calculations

From: Date: Thu, 03 Jun 2004 01:38:07 +0000
Subject: Re: calculations
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-23910@lists.php.net to get a copy of this message
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?
The output should be 444: $imagediv = (144 + (2 * 2)); // (144 + 4) = 148 $contentwidth = (148 * 3); // 444 Larry

« previous php.windows (#23910) next »