8
Answers

Expression calculation in c#

I want to implement an arithmatic operation in an textbox like when user type it eg
 
textbox1.Text= "2+5%"; // not to do operation of modulo, user want to calculate tax
output required = 2.1
 
user can type any expression and i want to calculate the result (like 2+(3*5)/2-8))  
 
how can I achieve this
Thanks 
Devendra 
Answers (8)