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])
….
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])
….