Re: [VOTE][RFC] intdiv()
| From: | Andrea Faulds | Date: | Wed, 30 Jul 2014 17:58:27 +0000 |
| Subject: | Re: [VOTE][RFC] intdiv() | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76281@lists.php.net to get a copy of this message | ||
On 30 Jul 2014, at 18:57, Sara Golemon <pollita@php.net> wrote:
> On Wed, Jul 30, 2014 at 10:54 AM, Andrea Faulds <ajf@ajf.me> wrote:
>> On 30 Jul 2014, at 18:51, Adam Harvey <aharvey@php.net> wrote:
>>> -1 explanation: I don't think %% is clear enough
>>
>> % returns the 2nd part of the integer division, %% returns the 1st. Surely that makes
>> sense?
>>
> That makes sense in PHP. Probably only in PHP.
Sure. In an ideal world, % would return the quotient and %% the remainder, but alas it is not so.
--
Andrea Faulds
http://ajf.me/