¡@

Home 

2014/10/15 ¤U¤È 10:11:46

iphone Programming Glossary: mynumber

Correcting floating point numbers

http://stackoverflow.com/questions/10049533/correcting-floating-point-numbers

decimal points you can also use the float to string conversion capability of NSNumber float myFloat 32 32.1 NSNumber myNumber NSNumber numberWithFloat myFloat NSString result myNumber stringValue result will contain 64.1 NSDecimalNumber will take.. capability of NSNumber float myFloat 32 32.1 NSNumber myNumber NSNumber numberWithFloat myFloat NSString result myNumber stringValue result will contain 64.1 NSDecimalNumber will take care of all of this for you but it a little more involved.. exponents NSDecimalNumber num2 NSDecimalNumber decimalNumberWithMantissa 321 exponent 1 isNegative NO NSDecimalNumber myNumber num1 decimalNumberByAdding num2 NSString result myNumber stringValue result will contain 64.1 share improve this answer..

How to add to an NSDictionary

http://stackoverflow.com/questions/3159844/how-to-add-to-an-nsdictionary

getting the object passed to the NSThread selector

http://stackoverflow.com/questions/5310328/getting-the-object-passed-to-the-nsthread-selector