I was taught that Multiplication trumps Division in order of execution and as I have used HP calculators all the way through, School, Collage and my working life it is ingrained in me.
I suppose the Americans had a different Math curriculum to England.
I was taught that the equation in question should be written as:
(6 / 2) * (2 + 1)
That will give the same result in any calculator or programming language.
Always use best practices, it helps cut down on debugging time later.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well I think I gcb got sums order sorted. Brackets, braces or parenthesis make it easier to read I think.
Chris- I got a psion organiser 2. I'll find it and test the sums priority
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was taught that Multiplication trumps Division in order of execution and as I have used HP calculators all the way through, School, Collage and my working life it is ingrained in me.
I suppose the Americans had a different Math curriculum to England.
I was taught that the equation in question should be written as:
(6 / 2) * (2 + 1)
That will give the same result in any calculator or programming language.
Always use best practices, it helps cut down on debugging time later.
The Help shows the precedence.
Well I think I gcb got sums order sorted. Brackets, braces or parenthesis make it easier to read I think.
Chris- I got a psion organiser 2. I'll find it and test the sums priority
Psion. Best computers ever. I've got most of the Psion range. Not an Organiser I, but from the II up.