Calculation Issues

edited January 2016 in How To...

Hello, I am attempting to build an advanced calculator in Processing, but I am having trouble finding a way to evaluate the equation. When the user types in an equation, each character is stored in a variable (including +, -, /, !, etc.). The equation is then stored in a string (char1 + "" + char2 + "" + char3, etc.). I am unsure how to generate an answer out of this. I would greatly appreciate it if someone could let me know how to accomplish this or direct me where to go.

Thank you!

Sign In or Register to comment.