From:             [EMAIL PROTECTED]
Operating system: linux (suse)
PHP version:      4.0.4pl1
PHP Bug Type:     Math related
Bug description:  mod operator

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 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]

Reply via email to