I am a beginner at Objective-C and I am a bit confused at this scenario. I have the following code:
if (number1 < number2) { NSLog(@\"THE FOLLOWING NU
I assume number1 and number2 are pointers to objects. The < sign is comparing the pointers.
You need to compare the actual floatValue or doubleValue
if ([number1 doubleValue] < [number2 doubleValue])
....