I need to do a double.Parse on a formula !!!!!!!

Jun 26 2008 10:45 PM

How can I make the following work?

string formula = "({0} / {1}) + {2}";

string calc = string.format(formula,10,3,2);

double calculatedvalue  = double.Parse(calc);

and have it return 5.3333333

 

 

 

 


Answers (3)