Provided MS follows a standard at all. Out of 4 MS products I tested so far, VB and JavaScript (in WSH) output -4, while VBScript and PowerToy Calc output 4.
It seems the majority leans to -4 and they are possibly right, but the fact that quite a few "big" software products give 4 tells me that this rule is far from being rigid or obvious.
To prevent misunderstandings, I'm not referring to the rule that exponent precedes subtraction. I'm talking about the role of the minus sign here, ie whether -2 should be treated as 0-2 (subtraction operation) or the negative number -2 as a single entity.
Last edited by qwerty; 27/02/05 01:24 AM.