?
// compare 5 to the max value of an integer
if (5 -2147483647) {
print This is;
} else {
print Nothing ;
}
// knock a digit off the max and compare again
if (5 -214748364) {
print weird;
} else {
print unusual;
}
?
I get nothing unusual
Kirk
-Original Message-
From:
This is not.;
}
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 2:23 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] peculiar behaviour of large integers with and
?
// compare 5 to the max value of an integer
if (5 -2147483647) {
print
I am running 4.0.6. Nothing prints to the screen using a cut and paste of
the code below.
-Original Message-
From: scott [gts] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 12:25 PM
To: php
Subject: RE: [PHP] peculiar behaviour of large integers with
and
after
I'll bet it did! Sorry, nothing unusual here, good luck.
-Original Message-
From: scott [gts] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 12:50 PM
To: php
Subject: RE: [PHP] peculiar behaviour of large integers with
and
i guess you've got a more recent version
4 matches
Mail list logo