Respond to this messageReturn to Index
Original Message
  • Good example using parenthesis, Ted.
    • Moneo (no login)
      Posted Oct 21, 2010 4:24 PM

      In the first example, the operations follow the old rule of: "Multiply and divide before add and subtract".

      In the second example, by using parenthesis you can change the order with which operations are performed.

      In either case, parsing the input string into it's components, can get rather tricky. You also have to be able to detect many possible input errors including unmatched sets of parentheses.

      Regards... Moneo
    Your Name
    Message Title
    Message Text
    Options
          


     Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement