Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Math Formula
Message
 
 
To
11/12/2008 08:21:56
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Politics
Category:
Other
Title:
Miscellaneous
Thread ID:
01366554
Message ID:
01366744
Views:
10
Jay,

The "rule" is left to right execution for operators of the same precedence in order of precedence.

Precedence
()
* /
+ -

The () in this expression symbolize multiplication instead of subtracting 2

The answer is 12 because you divide -24 by 4 then multiply by -2

To prove it correct use the VFP command window

? -24/4*(-2)

>>>
>>>-24/4(-2)
>>>
>>>Is it:
>>>
>>>-6(-2) = 12
>>>
>>>Or is it:
>>>
>>>-24/-8 = 3
>>>
>>
>>See Agnes' reply :o)
>
>This is what gets me. I've gotten different answer from technical people who are good at math. How am I supposed to help an 11-year old understand the rules? After reading all the replies, I still don't know if the answer is 12 or 3.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform