Whenever I use a calculator (or a compiler) I sprinkle brackets=20 everywhere. It usually annoys someone but it saves me in the long run. On 3/10/2012 10:42 PM, cdb wrote: > On Sun, 11 Mar 2012 15:45:05 +1300, RussellMc wrote: > :: Reverse the order of the two indivisible* portions. > :: A =3D (1 + 2) * 6 / 2 > > Yes, but,ignoring RPN for a moment, surely the 'convention' is that a > bracketed sum is performed first and then depending on the incarnation (o= f > compiler) the next sequence would be to read the remaining operators with > the same precedence in left to right order. > > In which case as my trusty Casio states, the answer is 1, only if the > division is performed first does the result come to 9 as per other > algorithms. > > Colin > -- > cdb, colin@btech-online.co.uk on 11/03/2012 > > Web presence: www.btech-online.co.uk > > Hosted by: www.justhost.com.au > > > This email is to be considered private if addressed to a named individua= l > or Personnel Department, and public if addressed to a blog, forum or new= s > article. > > > > > > --=20 John Ferrell W8CCW Few things are harder to put up with than the annoyance of a good example. Mark Twain (1835 - 1910), Pudd'nhead Wilson (1894) --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .