>; 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
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
> if ($high_distance=="INF")
> {
> unset($high_distance);
> }
> if ($low_distance=="INF")
> {
> unset($high_distance);
> }
>
>
>
> Shouldn't this be:
>
>
>
> if ($high_distance==&q
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
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
5 matches
Mail list logo