(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSNumber 

Inherits From:	NSValue : NSObject 

Conforms To:	NSCoding
NSCopying
NSObject 

Declared In:	foundation/NSValue.h 

Allocating and Initializing 

+ (NSNumber *)numberWithBool:(BOOL)value	Creates and returns a number object representing value of the type BOOL. 
+ (NSNumber *)numberWithChar:(char)value	Creates and returns a number object representing value of the type char.
+ (NSNumber *)numberWithDouble:(double)value Creates and returns a number object representing value of the type double.
+ (NSNumber *)numberWithFloat:(float)value	Creates and returns a number object representing value of the type float.
+ (NSNumber *)numberWithInt:(int)value	Creates and returns a number object representing value of the type int.
+ (NSNumber *)numberWithLong:(long)value	Creates and returns a number object representing value of the type long.
+ (NSNumber *)numberWithLongLong:(long long)value
	Creates and returns a number object representing value of the type long long.
+ (NSNumber *)numberWithShort:(short)value	Creates and returns a number object representing value of the type short.
+ (NSNumber *)numberWithUnsignedChar:(unsigned char)value
	Creates and returns a number object representing value of the type unsigned char.
+ (NSNumber *)numberWithUnsignedInt:(unsigned int)value
	Creates and returns a number object representing value of the type unsigned int.
+ (NSNumber *)numberWithUnsignedLong:(unsigned long)value
	Creates and returns a number object representing value of the type unsigned long.
+ (NSNumber *)numberWithUnsignedLongLong:(unsigned long long)value
	Creates and returns a number object representing value of the type unsigned long long.
+ (NSNumber *)numberWithUnsignedShort:(unsigned short)value
	Creates and returns a number object representing value of the type unsigned short.

Accessing Data 

- (BOOL)boolValue	Returns the receiver's value as a boolean value.
- (char)charValue	Returns the receiver's value as a character value.
- (double)doubleValue	Returns the receiver's value as a double precision floating point value.
- (float)floatValue	Returns the receiver's value as a single precision floating point value.
- (int)intValue	Returns the receiver's value as a integer value.
- (long long)longLongValue	Returns the receiver's value as a long long double precision floating point value.
- (long)longValue	Returns the receiver's value as a long double precision floating point value.
- (short)shortValue	Returns the receiver's value as a short integer value.
- (NSString *)stringValue	Returns the receiver's value as a string contained in an NSString object.
- (unsigned char)unsignedCharValue	Returns the receiver's value as an unsigned character  value.
- (unsigned int)unsignedIntValue	Returns the receiver's value as an unsigned integer value.
- (unsigned long long)unsignedLongLongValue	Returns the receiver's value as an unsigned long long double precision floating point value.
- (unsigned long)unsignedLongValue	Returns the receiver's value as an unsigned long double precision floating point value.
- (unsigned short)unsignedShortValue	Returns the receiver's value as an unsigned short integer value.

Comparing Data 

- (NSComparisonResult)compare:(NSNumber *)other	
	Compares the receiver to other, using ANSI C rules for type coersion, and returns an NSComparisonResult.