0

Hi To All,

I have an equation in string like this

((BASIC+HRA)*(30/100))

Using replace function

Now i replaced this into values...

String formula = ((10000+3000)*(30/100))

whole thing as a string now 'Formula'...

How can i calculate this formula

float amt = formula;

Now i have an error...type casting....i can't calculate this amt