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
Danaher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 05, 2001 3:46 PM To: Php-General Subject: [PHP] negative infinity is unreachable HELP! I have been trying variations of the code posted below with little success. The log() function generates a -INF statement when trying to calculate

Re: [PHP] negative infinity is unreachable

2001-09-05 Thread Hugh Danaher
RE: [PHP] negative infinity is unreachable > if ($high_distance=="INF") > { > unset($high_distance); > } > if ($low_distance=="INF") > { > unset($high_distance); > } > > > > Shouldn't this be: > > > > if ($high_distance==&q

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

[PHP] negative infinity is unreachable

2001-09-05 Thread Hugh Danaher
HELP! I have been trying variations of the code posted below with little success. The log() function generates a -INF statement when trying to calculate the log of zero or the log of an empty value in the associative array. With the "IF then unset() " statements in place, the total contents