Can I get an arithmetic expression as a string computed with the Javascript Math object?

Posted by chimerical on Stack Overflow See other posts from Stack Overflow or by chimerical
Published on 2010-03-15T01:22:27Z Indexed on 2010/03/15 1:29 UTC
Read the original article Hit count: 262

Filed under:

If I have an arithmetic expression as a string ("2+3*4/5"), is there a way to get this computed with the Javascript Math object without parsing that entire string to separate everything out?

© Stack Overflow or respective owner

Related posts about JavaScript