0

I am working on math engine in C# for my teacher, and I don't know how to parse something like this string needToBeCalculated = "1/2 + (2 + 3 /2 * (3+1))";, To an int or long. I know thatlong Calculated = long.Parse(needToBeCalculated ); this doesn't work. But is there a build in method or some kind of a design pattern that i must use ?

0 Answers0