How do you check if a given input is a string or a double? I tried doing [self.display.text doubleValue]
and if that's not a valid double, it returns 0, but the problem is that 0 is actually a valid input for an actual double, so the program won't know if it's the default error fallback or an actual valid input.
How do you go around this?