Menu

What's 6/2(1+2) ?

2022-05-10
2022-05-15
<< < 1 2 (Page 2 of 2)
  • Chris Roper

    Chris Roper - 2022-05-13

    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.

     
  • Anobium

    Anobium - 2022-05-13

    The Help shows the precedence.

     
  • stan cartwright

    stan cartwright - 2022-05-14

    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

     
    • mkstevo

      mkstevo - 2022-05-15

      Psion. Best computers ever. I've got most of the Psion range. Not an Organiser I, but from the II up.

       
<< < 1 2 (Page 2 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.