Chunk order must be small to large
Francis Nugent Dixon
effendi at wanadoo.fr
Fri Mar 13 19:24:35 EDT 2009
Hi from Paris,
> Take for example 5 * 5 + 1. Did we mean (5 * 5) + 1? Or did we mean 5
> * (5 + 1)? Well we know by math formula rules that the multiplication
> is calculated first, so 26 is the correct answer. It would have been
> clearer to just use the parenthesis and avoid any confusion, and many
> programmers would. So does Rev. But my point is, someone decided that
> was the rule, so we could never be mistaken about what the result
> would be.
I learned, in school (in England), nearly 60 years ago - "BODMAS"
Brackets Off/Divide/Multiply/Add/Subtract
I don't think that the rules have changed ........!
-Francis
"Nothing should ever be done for the first time !"
More information about the use-livecode
mailing list