1 2 Previous Next 25 Replies Latest reply on Jun 26, 2007 10:45 PM by 796440

    Help Please! How do i Convert a string to math operator?

    807605
      Hi. I am trying to write a calculator that takes a string from the user and calculates the expression. For example,

      55 * 4 + ( 55 - 30 ) + 7

      I can use the string tokenizer and seperate the string into individual parts, then use parsedouble for the numbers, but is there a way to parse the operators? i cant figure this out.
        1 2 Previous Next