I have an array with double values that can range from 0.0 to 100.0. I would like to alert the user if any of the values are below 10.0. I did some searching and the closest thing I could find was:
- (BOOL)containsObject:(id)anObject
Is there any way I could use this method to see if the values are below 10? I tried the following line of code but received two errors.
if ([myArray containsObject:[NSNumber numberWithDouble:(<10)])
{
// Do something
}
I would appreciate the assistance. It seems like a pretty basic task.