How to evaluate an expression

Discussion in 'ASP .Net' started by EDom, Jul 18, 2005.

  1. EDom

    EDom Guest

    Hi,
    I have expressions in a string like "100/24*5" and so on. How can I evaluate
    this expression to get the result.

    Regards,
    Vineet
     
    EDom, Jul 18, 2005
    #1
    1. Advertisements

  2. EDom

    TJS Guest

    TJS, Jul 18, 2005
    #2
    1. Advertisements

  3. EDom

    Charlie@NISH Guest

    You could parse string then convert to numeric format for evaluation.

    Charlie

    "TJS" <> wrote in message
    news:...
    > google "evaluate mathematical expressions"
    >
    > append language
    >
    > here's one
    >
    > http://www.c-sharpcorner.com/Code/2002/April/ExpressionEvaluator.asp
    >
    >
    > "EDom" <> wrote in message
    > news:...
    >> Hi,
    >> I have expressions in a string like "100/24*5" and so on. How can I
    >> evaluate
    >> this expression to get the result.
    >>
    >> Regards,
    >> Vineet
    >>
    >>

    >
    >
     
    Charlie@NISH, Aug 12, 2005
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    622
    Karl Seguin [MVP]
    Mar 28, 2006
  2. Replies:
    28
    Views:
    12,443
    Fathzer
    Aug 29, 2012
  3. evan
    Replies:
    1
    Views:
    1,197
    John Harrison
    Jun 28, 2003
  4. evan
    Replies:
    0
    Views:
    770
  5. Marco Traverso
    Replies:
    7
    Views:
    1,931
    Marco Traverso
    Dec 6, 2003
  6. Ray
    Replies:
    3
    Views:
    1,184
  7. Jason luo
    Replies:
    3
    Views:
    791
    Peter Ammon
    Aug 19, 2004
  8. No Such Luck

    Evaluate string expression in if statement?

    No Such Luck, Dec 7, 2005, in forum: C Programming
    Replies:
    8
    Views:
    526
    Richard Heathfield
    Dec 8, 2005
Loading...