संभावित डुप्लिकेट:
Is there a string math evaluator in .NET?
Converting string expression to Integer Value using C#
Best and shortest way to evaluate mathematical expressions
c# evaluating string “3*(4+2)” yield int 18सी # गणित कैलकुलेटर
वहाँ की तरह (2-3/4 * 12 गणित अभिव्यक्ति की गणना करने के लिए एक रास्ता है) यहां प्रस्तुत करने से अलग तरीके से?
var result = new DataTable().Compute("2-3/4*12", null);
ध्यान दें कि यह सरल गणित अभिव्यक्ति तक सीमित है:
http://stackoverflow.com/questions/333737/, http://stackoverflow.com/questions/234217/, http://stackoverflow.com/questions/1437964/, http://stackoverflow.com/ प्रश्न/355062/ –