Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Math Formula
Message
 
 
À
11/12/2008 08:21:56
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Politics
Catégorie:
Autre
Titre:
Divers
Thread ID:
01366554
Message ID:
01366744
Vues:
9
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform