ID: 10715
Updated by: jeroen
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Math related
Operating System: Debian GNU/Linux
PHP Version: 4.0.5
New Comment:
-0 is just a strange way of writing 0
Previous Comments:
------------------------------------------------------------------------
[2001-07-22 15:48:23] [EMAIL PROTECTED]
I believe this is probably because the negative sign is
stripped from -0, so the variable just reads 0 (which is an
integer.) Can anybody else verify this?
------------------------------------------------------------------------
[2001-05-07 15:04:22] [EMAIL PROTECTED]
$number = -0;
if (is_integer($number) == true)
{
echo "number is an integer";
}
else {
echo "number is not an integer";
}
/* -0 just generally works as a number it probably shouldn't */
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10715&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]