Hi,
please see code below
string strValue="(1000*15)/100";
decimal calculatedValue=convert.toDecimal(strValue);
it is giving a error
I want ot convert string of formula containing values to decimal
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kunal VaishyaPosted Mar 19, 2013, 4:37 AM
http://www.codeproject.com/Articles/30999/ScriptEngine-User-Defined-Calculations-in-C-VB-JSc
MalleshPosted Mar 19, 2013, 2:44 AM
Thank very much its working fine
VulpesPosted Mar 16, 2013, 9:13 AM
The output should be:
Result: 150