RE: [PHP-WIN] calculations

2004-06-03 Thread Gryffyn, Trevor
As people pointed out, your current calculations don't add up to 452. What I'm reading here is that you want an image gallery with 3 rows (do you mean columns since you're talking width?) with borders on the images. Maybe you're calculating the width to use for your table or something. If this

RE: [PHP-WIN] calculations

2004-06-03 Thread Svensson, B.A.T. (HKG)
> >How did you come to the conclusion it should be 452? > Like Svensson says, how do you get 452 ? > If you calculate 452/3 you get 150.(6) What I can read from the question: the predicted result should be 452. Since the formula only does what is told to do, i.e. output the number 444 with the s

Re: [PHP-WIN] calculations

2004-06-03 Thread Luis Moreira
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 +

RE: [PHP-WIN] calculations

2004-06-02 Thread Svensson, B.A.T. (HKG)
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)); $conte

Re: [PHP-WIN] calculations

2004-06-02 Thread Larry E . Ullman
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