1
Answer

Calculate formula to double

Ask a question
bfahrmeier

bfahrmeier

20y
1.6k
1
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.

Answers (1)