I used NSNumber class.
but methods that can use is different in follow environments.
First is a picture in command line tool environment. (Mac os x)
Second is a picture in single view application environment. (iOS)
: Can’t use isGreaterThan:, isGreaterThanOrEqualTo:, isLessThan:.. Etc. methods
Why did that?
1] first picture

2] second picture

Those methods you’re seeing on the Mac aren’t actually part of the
NSNumberclass but instead are part of an informal protocol calledNSComparisonMethodsthat is only available on Mac OS X. The methods in this protocol are convenience methods that actually just use thecompare:method already available on many Cocoa classes. If you wanted, you could implement these methods as a category onNSNumberquite easily. Here is how I would implement-isGreaterThanOrEqualTo:.