note 41891 deleted from language.operators.arithmetic by irchtml
| From: | irchtml@php.net | Date: | Sun, 25 Apr 2004 00:33:14 +0000 |
| Subject: | note 41891 deleted from language.operators.arithmetic by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68750@lists.php.net to get a copy of this message | ||
Note Submitter: bryan8m@hotmail.com
----
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?