1 2 Previous Next 25 Replies Latest reply: Jun 25, 2007 2:31 PM by 807605 RSS

    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