What i am really looking for is a maths equation function that takes in a string representing and equation and calculates the answer as a return type
For Example "(((4 * 5) + 6) * 2) / 8"
OutPut: 6.5
So in coding tearms something like
print calc("(((4 * 5) + 6) * 2) / 8");
Is there already a class or a function that some angel has built or do i gota do it my self
Thanks