note 41891 added to language.operators.arithmetic
| From: | bryan8m at hotmail dot com | Date: | Sun, 25 Apr 2004 00:22:12 +0000 |
| Subject: | note 41891 added to language.operators.arithmetic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68749@lists.php.net to get a copy of this message | ||
A % B (A mod B)
Result = A / B
If the result is a whole number; outputs 0.
If the result is a fraction and is odd; outputs 1.
If the result is a fraction and is even; outputs 2.
If B is more than half of A; outputs A - B
Is this correct?
----
Manual Page -- http://www.php.net/manual/en/language.operators.arithmetic.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41891
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41891&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41891&report=yes
Search -- http://master.php.net/manage/user-notes.php