Download MetaTrader 5

Ma

To add comments, please log in or register
How to earn at MQL5.community? Come and find out!
Ian Harris
106
Ian Harris 2012.01.07 01:51 

All,

When I went to school I learned that it doesn't matter what order you do addition and subtraction in, the result is always the same. But observe that in the following code, mrequest.sl and sl9 are both calculated in the same way, but one version (mrequest.sl) has brackets inserted. The results are different. mrequest.sl is correct, sl9 is incorrect. Am I missing something obvious???

Thanks, Ian

Math Anomaly

To add comments, please log in or register