Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76281 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79955 invoked from network); 30 Jul 2014 17:58:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2014 17:58:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:49576] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/83-58500-93239D35 for ; Wed, 30 Jul 2014 13:58:17 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 2B54B2400C6; Wed, 30 Jul 2014 13:58:31 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kBbs7SMJoXNc; Wed, 30 Jul 2014 13:58:31 -0400 (EDT) Received: from [192.168.0.15] (unknown [90.210.122.167]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id B36EB24005D; Wed, 30 Jul 2014 13:58:29 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: Date: Wed, 30 Jul 2014 18:58:27 +0100 Cc: Adam Harvey , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <48F3AD93-7E6E-451E-B7AC-9DDFC85D5A58@ajf.me> References: <739E5BAE-A01D-4936-A016-8CD90CD64BA1@ajf.me> To: Sara Golemon X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] [VOTE][RFC] intdiv() From: ajf@ajf.me (Andrea Faulds) On 30 Jul 2014, at 18:57, Sara Golemon wrote: > On Wed, Jul 30, 2014 at 10:54 AM, Andrea Faulds wrote: >> On 30 Jul 2014, at 18:51, Adam Harvey wrote: >>> -1 explanation: I don't think %% is clear enough >>=20 >> % returns the 2nd part of the integer division, %% returns the 1st. = Surely that makes sense? >>=20 > 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/