Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A simplier math formula
Message
Information générale
Forum:
Politics
Catégorie:
Autre
Divers
Thread ID:
01367448
Message ID:
01368281
Vues:
6
>Ok, I get it now. The unary operator takes precedence over exponentiation because..... you want it to? I tried that philosophy out when I was in school in hopes of perfect scores on everything. Oddly, it didn't work out that way. ;)

No Alan, the designers of the language (VFP in this case) wanted it that way. Some other languages might implement a different order of precedence and then some other languages get rid of the problem by using a different notation altogether, like RPN (Reverse Polish Notation). The trick is to learn the rules of the language you are using, something that will be very clear if your language of choice was using RPN :)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform