Not sure how to word this and so am not having much luck in Google searches…
I need to calculate a value for a string of numbers.
Example. A user types in ‘1.00 + 2.00 – 0.50’ into a text field. The function should be able to take that string and calculate the result to return $2.50.
Anyone have a way to do this in their bag of tricks?
If it’s actually a mathematical operation you may just use eval, not sure that’s what you want though :