Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A simplier math formula
Message
From
17/12/2008 02:58:54
 
 
To
16/12/2008 23:39:24
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Politics
Category:
Other
Miscellaneous
Thread ID:
01367448
Message ID:
01368021
Views:
10
>>Was there ever a conclusion here as to what is correct?
>>
>>I would of done it like this:
>>(-2)^2 = 4
>>
>
>try:
>
>?5-2^2
>
>?-2^2
>
>obviously VFP and Excel has a bug.


Metin,

This is not algebra

The minus sign in the first expression is a binary operator.
In the second expression, it's a unary operator

The unary minus has higher precedence than the exponent
The binary minus has lower precedence than the exponent

No bug
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform