Execute a “prepared” math operation in Objective-C
问题 I want to to math operations with some kind of prepared formula that would look like tan(%f)*1000 or %f+%f where the %f has to be replaced by an argument. Is there a function in Objective-C that I can pass the format of my formula and the required numbers to execute this prepared operation? I hope the problem is described understandable, if not, leave a comment. Thanks in advance. Edit 1: Thanks for your answers so far, but I'm looking for something more dynamic. The block and inline function