Page 1 of 1

String to Arithmetic Expression

Posted: Wed Oct 17, 2007 3:02 am
by rajan
I am entering formulae from admin panel and now i want to calculate cost of the product using this formulae, But it always take it as a string so how could I calculate cost using the formulae entered by admin.

Posted: Wed Oct 17, 2007 4:38 am
by s.dot
Tentatively, eval().

Posted: Mon Oct 22, 2007 3:03 am
by feyd
There are various math engines out there.... with a bit of searching and some luck one should be able to find at least one of them.