Re: calculations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux