Top "Nsnumber" questions

on Mac OS X, NSNumber is a subclass of NSValue that offers a value as any C scalar (numeric) type

How to convert NSNumber objects for computational purposes?

I an developing some code in which I use a scanner to get to NSNumbers from a string, say x …

nsnumber
Adding Integer To NSMutableArray

I couldn't find this anywhere, so I am asking just asking to make sure. And yes, I know its basic, …

objective-c arrays object nsnumber
How to add numbers in a mutable array in iPhone?

I am new to iPhone development. I want a Nsmutable array to hold numbers from 1 to 100. How can I do …

iphone objective-c cocoa-touch nsmutablearray nsnumber
String to float in objective c

I have a parser returning some string value I'd like to use as parameter for my class instance initialisation. I …

objective-c nsstring floating-point nsnumber
How to cast from UInt16 to NSNumber

I have a UInt16 variable that I would like to pass to a legacy function that requires an NSNumber. If …

swift casting nsnumber
Convert CGFloat to NSNumber in Swift

I have an extension in Swift that holds some properties which are CGFloat's. The problem is that I don't know …

ios swift casting nsnumber cgfloat
How to do math on NSNumber

I am trying to take a reading off a sensor and display it as a percentage. [some value] will always …

iphone ios objective-c cocoa nsnumber
How to convert Swift optional NSNumber to optional Int? (any improvements on my code?)

What would be the shortest/cleanest way to convert an Optional Number to an Optional Int in Swift? Is there …

ios swift swift2 optional nsnumber
Get Integer value from NSNumber in NSArray

I have an NSArray with NSNumber objects that have int values: arrayOfValues = [[[NSArray alloc] initWithObjects: [NSNumber numberWithInt:1], [NSNumber numberWithInt:3], [NSNumber …

objective-c ios iterator nsarray nsnumber
Converting Double to NSNumber in Swift Loses Accuracy

For some reason, certain Doubles in my Swift app are giving me trouble when converting to NSNumber, while some are …

ios swift double nsnumber