I have a string with multiple digits and operators
@\"5+4-9/10\".
\"5+4-9/10\"
How to get the result from it?
I want to use it within the calculator
You could parse "all" numbers to float:
NSMutableString *numericExpression = [NSMutableString stringWithString:@"4+3/2-7/4"]; NSMutableString *nExp=[NSMutableString stringWithString:@""]; BOOL innum=false; BOOL dotfound=false; for (NSInteger charIdx=0; charIdx