Re: Modulo Function returns incorrect results
| From: | Lester Caine | Date: | Fri, 06 Aug 2004 07:33:29 +0000 |
| Subject: | Re: Modulo Function returns incorrect results | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11962@lists.php.net to get a copy of this message | ||
Matthew Boehm wrote:
Returns 11. What is going on? Was my C.S. Professor wrong in telling us that the % function returns the left side of the decimal in a division?Try RIGHT side, but as an integer remainder ( fraction * divisor ) -- Lester Caine ----------------------------- L.S.Caine Electronic Services