I guess I could have worded that better
![[Linked Image]](https://ubbdev.com/ubb/smilies/smile.gif)
Let me try again.
$firstVar = -2 ** 4;
$secondVar = -(2 ** 4);
In both cases, 2 is taken to the 4th (not -2), and
then the number is made negative. In these cases, the brackets dont matter only because the result is the same. Edit: remember "**" has a higher precedence than "-"
$thirdVar = (-2) ** 4;
In this case, it does what you would expect, returning a positive result. That is because the minus sign is already in the brackets, and it
has to change it to a negative value.
Hey, no problem, Pyros. I never really put that much thought into it before, so this helps me out too
This message has been edited by SonnyBlack on September 25, 2000 at 07:02 PM