Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70295 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82620 invoked from network); 22 Nov 2013 21:06:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Nov 2013 21:06:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@chrislondon.co; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@chrislondon.co; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain chrislondon.co does not designate 74.125.82.180 as permitted sender) X-PHP-List-Original-Sender: me@chrislondon.co X-Host-Fingerprint: 74.125.82.180 mail-we0-f180.google.com Received: from [74.125.82.180] ([74.125.82.180:47662] helo=mail-we0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/30-28674-767CF825 for ; Fri, 22 Nov 2013 16:06:48 -0500 Received: by mail-we0-f180.google.com with SMTP id u56so1659394wes.39 for ; Fri, 22 Nov 2013 13:06:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mwjDaIyGsNJApQvSQo0JQ9LjlEWc5W1oUaTHDNw8QxQ=; b=LceRQ6t7x3mJvnedd2ypHvRRsRjeKG3Hwv/ru4JCNbpR7TdRpl5mUKPLutCFzt0umj AysPEcueCObzZXI0dLpRhKxU7wZlQYbrrt3NdCR6hdE0La6E6k38ZDrHPNggW14EL7pr bmbMGo9QH0NKwwVCAq81WCkB2BsCbinMHigAZ6nASvi+BZW6jHdIgS4kZxQ7GLfWlYV6 lXVcjYeYypmnLaJKhHZb4mqthWhDPLAPtSEW0YUj/eQaRgOkM8ucuzdcgNSgKX24/Qy1 QgTLLH4O7GiiPgOnJEcn0defPCLjiAd/RxAyI6XiHewpLrShCMyHqLZ62OiR1IqIjiKf 48Ew== X-Gm-Message-State: ALoCoQmQnhD3v63AHdmDCCwv5PQSlUFpUZTrsbjWUo5evkJfnF2iFXftrRi6UDn43vnQC4Di5OuS MIME-Version: 1.0 X-Received: by 10.195.13.164 with SMTP id ez4mr12260915wjd.11.1385154404088; Fri, 22 Nov 2013 13:06:44 -0800 (PST) Received: by 10.217.153.135 with HTTP; Fri, 22 Nov 2013 13:06:44 -0800 (PST) X-Originating-IP: [66.219.207.210] In-Reply-To: References: Date: Fri, 22 Nov 2013 14:06:44 -0700 Message-ID: To: Sherif Ramadan Cc: Tjerk Meesters , Leigh , PHP Internals Content-Type: multipart/alternative; boundary=047d7bb04f683713d304ebca6487 Subject: Re: [PHP-DEV] Power function as operator From: me@chrislondon.co (Chris London) --047d7bb04f683713d304ebca6487 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Nov 22, 2013 at 12:56 PM, Sherif Ramadan wrote: > On Fri, Nov 22, 2013 at 1:03 PM, Tjerk Meesters >wrote: > > > > > 2 ** 3 ** 2 == 512 > > > > > That looks very wrong. pow(pow(2,3),2) == 64 > > Exponent precedence should always be one higher than multiplication > precedence. > I don't know if we consider Google to be the authority but they also do 512: 2 ^ 3 ^ 2 = 512 https://www.google.com/search?q=2+%5E+3+%5E+2 --047d7bb04f683713d304ebca6487--