you can you microsoft script control
MMScriptControl.ScriptControl s = new MMScriptControl.ScriptControl();
s.Language="VBScript";
string str1 = "(15*20)+12.5";
double r = s.Eval(str1);
you must add a reference to the ocx microsoft script control library
"MN" <mn*********@hotmail.com> ha scritto nel messaggio
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All,
I have a string like ...
String str1 = "(15*20)+12.5";
I want to evaluate this string to get the mathematical output. Ideally
output will be 312.5. How can I do with the .Net??
thanks
Manoj