Ok, so I have a page where I can input mathematical formulas -

ie: a text input with the value = "(((3+5)*8)/1.4)".

What I am trying to do is convert that string to an actual answer.

Given, in javascript I can write out the equation internally, but how to convert a string to utilize javascripts internal functionality?

I realize I could assign variables to each mathematical character and split those chars in a string length -

r = );

but isn't there an easier way?

any help much appreciated.

- Ben

## Bookmarks