Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A simplier math formula
Message
 
To
17/12/2008 14:57:57
General information
Forum:
Politics
Category:
Other
Miscellaneous
Thread ID:
01367448
Message ID:
01368281
Views:
7
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform