On Monday 11 February 2002 03:05, Gary wrote:
> Hi All,
>   This is the first time I have had to deal with math. I have gone
> through the manual and a few books and I think I am worse off then when
> I started. Can someone give me an example of the simple math below. I
> think If I see some in code I can move on from there.
>
> I need to find out if $pa > $pb or $pb > $pa then subtract smallest from
> the largest and add $ca and then add $ps

Try:

  ABS($pa - $pb) + $ca + $ps;



-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
I want the presidency so bad I can already taste the hors d'oeuvres.
*/

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

Reply via email to