i have one text file that contains only one line the line only contains one math expression for example 12+(3.0*(4)-1)/sqrt(121)
my program needs to read this express as string and then give the result
13
is there any simple way or 3rd party dll/lib to make this out?
COMMENT ADDED:
Evaluating a string of simple mathematical expressions
here is the solution but many of the solutions only contain +-/* acturally ,i need the operators as many as possible such as ceiling square square root and power()
so this link maybe is the best solution
http://www.codeproject.com/KB/recipes/sota_expression_evaluator.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With