I'm tring to evaluate a string formula to a float but, I cannot find a solution. Here is an example. I need to calculate about 200 formulas in this way.
- NSString *Formula;
- Float *Result;
- Float *x
- x = 12;
- Formula = @"12.845*x+(-0.505940)";
Result = Evaluation / Calculation (Formula);
Then I'll use Result as a result from formula. --> Result = @"12.845*x+(-0.505940)";
See Question&Answers more detail:os