I am working on a calculator. When the user performs, say 50^50, the pow() function returns "+(infinity symbol)" with out the ()s. I don't want it to do that, I want to see if the string that shows the positive infinity does, and if so change a UILabel's text to "OverFlow" Here is the (very shortened) code:
Code:
if (answerString == [NSString stringWithFormat:@"+%d", INFINITY]) {
overflow.textColor = [UIColor blackColor];
}
This if statement never evaluates true. So how do I see if an NSString's value is "+(infinity symbol)"?