NSNumber $Revision$ $Date$ NSNumber Foundation/NSValue.h NSCoding numberWithBool: value numberWithChar: value numberWithDouble: value numberWithFloat: value numberWithInt: value numberWithLong: value numberWithLongLong: value numberWithShort: value numberWithUnsignedChar: value numberWithUnsignedInt: value numberWithUnsignedLong: value numberWithUnsignedLongLong: value numberWithUnsignedShort: value boolValue charValue compare: aNumber decimalValue description Invokes descriptionWithLocale: using nil locale. descriptionWithLocale: aLocale

Produces a string representation of the number. For a boolean this will be either 'true' or 'false'. For other numbers the format is produced using the initWithFormat:locale:... method of NSString, and the format depends on the type of number as follows -

char %i short %hi int %i long %li long long %li unsigned char %u unsigned short %hu unsigned int %u unsigned long %lu unsigned long long %lu float %0.7g double %0.16g
doubleValue floatValue initWithBool: value initWithChar: value initWithDouble: value initWithFloat: value initWithInt: value initWithLong: value initWithLongLong: value initWithShort: value initWithUnsignedChar: value initWithUnsignedInt: value initWithUnsignedLong: value initWithUnsignedLongLong: value initWithUnsignedShort: value intValue isEqualToNumber: aNumber longLongValue longValue shortValue stringValue Expivalent to descriptionWithLocale: using a nil locale. unsignedCharValue unsignedIntValue unsignedLongLongValue unsignedLongValue unsignedShortValue