Bug #12623: mod operator
| From: | dosena at altavista dot com | Date: | Tue, 07 Aug 2001 15:14:21 +0000 |
| Subject: | Bug #12623: mod operator | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-62424@lists.php.net to get a copy of this message | ||
From: dosena@altavista.com
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