I have a mathematical expression in string form like:
string strExpression = "10+100+Math.Sin(90)";
I want to simply assign this expression (at run time) to a float
variable (say result
), so that it becomes the following code statement:
float result = 10+100+Math.Sin(90);
How can I do this?