Expression Evaluation DotNet

  • Thread starter Thread starter Yoav Brav
  • Start date Start date
Y

Yoav Brav

Hi,

I would like to convert a string such as "(3+2)/4" and return
the answer.
But I want the user to be able to type in the formula into a textbox
and have the ASPX convert that string value into a mathematical expression
and return the calculated value

tx

yoav
(e-mail address removed)
 
don't know if asp.net's got any special way for this, but i'd break the
expression up and parse through it, it's not that simple with things like
BODMAS ordering etc...

a binary tree's probably the easist structure to use.
 
Back
Top