Re: [PHP] negative infinity is unreachable

2001-09-05 Thread Hugh Danaher
>; Php-General <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 1:38 PM Subject: RE: [PHP] negative infinity is unreachable > I believe your problem is due to ambiguous type casting. Your if statement > tests a DOUBLE against a STRING. Try: > > $x_dista

RE: [PHP] negative infinity is unreachable

2001-09-05 Thread Robert V. Zwink
I believe your problem is due to ambiguous type casting. Your if statement tests a DOUBLE against a STRING. Try: $x_distance=20+($year-($current_year-9))*20; $high_distance=420-round(log($high[$year])*75,0); $low_distance=420-round(log($low[$year])*75,0); settype($high_di

Re: [PHP] negative infinity is unreachable

2001-09-05 Thread Hugh Danaher
Yes, you are correct, I made a mistake when writing the code block for the e-mail. - Original Message - From: Seb Frost <[EMAIL PROTECTED]> To: Hugh Danaher <[EMAIL PROTECTED]>; Php-General <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 12:54 PM Subject:

RE: [PHP] negative infinity is unreachable

2001-09-05 Thread Seb Frost
if ($high_distance=="INF") { unset($high_distance); } if ($low_distance=="INF") { unset($high_distance); } Shouldn't this be: if ($high_distance=="INF") { unset($high_distance); } if ($low_distance=="INF") { unset($low_distance); } - seb --- Outgoing ma