Calculate formula to double
Who can help me ?
I have a string which contains a formula (=2+1). The result (3) of the formula I want to have as double. How can I do this ???
Some code:
string strFormula="=2+1";
double dblResult=Convert.ToDouble(strFormula);
This code gives an error.
Niek.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

jamesRank #1,153 · 1.6K reputationPosted Feb 11, 2004, 5:22 AM EST