Hi to all!
I have a string that contains a mathematical expression e.g. "(5 + 2) * 3 + 1". I want to get the decimal value that this expression gives. The expression might not be this one (it is stored in the database as a string). It might be longer than this. The biggest problem I think is the brackets. Is there some way in C# to do that?
I hope I was clear and you understood my question!
Thanks in advance for any help!
Country of eagles
I have a string that contains a mathematical expression e.g. "(5 + 2) * 3 + 1". I want to get the decimal value that this expression gives. The expression might not be this one (it is stored in the database as a string). It might be longer than this. The biggest problem I think is the brackets. Is there some way in C# to do that?
I hope I was clear and you understood my question!
Thanks in advance for any help!
Country of eagles