ID: 12623
Updated by: jmcastagnetto
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Bogus
Bug Type: Math related
Operating System: linux (suse)
PHP Version: 4.0.4pl1
Previous Comments:
------------------------------------------------------------------------
[2001-08-07 11:14:21] [EMAIL PROTECTED]
Modulus (%) operator
i am not sure if the behavior for non-integer operands is defined, so i am not sure
how important this actually is
check
2035 % 179 = 66 // correct!
203.5 % 17.9 = 16 // incorrect - should be 6.6!
<?php
echo "2035 % 179 == " . 2035 % 179;
echo "<br>\n";
echo "203.5 % 17.9 == " . 203.5 % 17.9;
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12623&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]