Re: rfc: pow-operator

From: Date: Sun, 24 Nov 2013 01:18:38 +0000
Subject: Re: rfc: pow-operator
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-70340@lists.php.net to get a copy of this message
> A more appropriate example would be to say should we treat -3 ^ 2 as (-3) > ^ 2 == 9 or as -(3 ^ 2) == -9 > > Ok, though if we want to be completely accurate, I'd go with this: (-3) ^ (2) == 9. Likewise: (1) + (-3) ^ (2) == (1) + ((-3) ^ (2)) == 10. http://en.wikipedia.org/wiki/Order_of_operations --Kris

« previous php.internals (#70340) next »