What are the benefits/downsides between using the NSInteger (or NSNumber) and float/int?
What exactly is decimal??
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NSIntegeris just a type def ofintwhen using it on the iPhone, but on OSX will change form 32 bit int to 64 bit int if you build your code for a 64 bit machine.NSNumberis an object that can hold any type of number, being float, integer, double, long ect..NSDecimalis a struct which will tell you about some detail about the floating point value of aNSNumber.NSDecimalNumberis a subclass ofNSNumberwhich can hold a more exact floating point value: see @dreanlax comment