Public Member Functions | |
(id) | - initWithBool: [implementation] |
(id) | - initWithChar: [implementation] |
(id) | - initWithDouble: [implementation] |
(id) | - initWithFloat: [implementation] |
(id) | - initWithInt: [implementation] |
(id) | - initWithLong: [implementation] |
(id) | - initWithLongLong: [implementation] |
(id) | - initWithShort: [implementation] |
(id) | - initWithUnsignedChar: [implementation] |
(id) | - initWithUnsignedInt: [implementation] |
(id) | - initWithUnsignedLong: [implementation] |
(id) | - initWithUnsignedShort: [implementation] |
(CPString) | - hash [implementation] |
(BOOL) | - boolValue [implementation] |
(char) | - charValue [implementation] |
(CPDecimal) | - decimalValue [implementation] |
(CPString) | - descriptionWithLocale: [implementation] |
(CPString) | - description [implementation] |
(double) | - doubleValue [implementation] |
(float) | - floatValue [implementation] |
(int) | - intValue [implementation] |
(long long) | - longLongValue [implementation] |
(long) | - longValue [implementation] |
(short) | - shortValue [implementation] |
(CPString) | - stringValue [implementation] |
(unsigned char) | - unsignedCharValue [implementation] |
(unsigned int) | - unsignedIntValue [implementation] |
(unsigned long) | - unsignedLongValue [implementation] |
(unsigned short) | - unsignedShortValue [implementation] |
(CPComparisonResult) | - compare: [implementation] |
(BOOL) | - isEqualToNumber: [implementation] |
(id) | - initWithCoder: [implementation] |
(void) | - encodeWithCoder: [implementation] |
Static Public Member Functions | |
(id) | + numberWithBool: [implementation] |
(id) | + numberWithChar: [implementation] |
(id) | + numberWithDouble: [implementation] |
(id) | + numberWithFloat: [implementation] |
(id) | + numberWithInt: [implementation] |
(id) | + numberWithLong: [implementation] |
(id) | + numberWithLongLong: [implementation] |
(id) | + numberWithShort: [implementation] |
(id) | + numberWithUnsignedChar: [implementation] |
(id) | + numberWithUnsignedInt: [implementation] |
(id) | + numberWithUnsignedLong: [implementation] |
(id) | + numberWithUnsignedShort: [implementation] |
Number
type can be changed on the fly based on context, so there is no need to call any of these methods.In other words, native JavaScript numbers are bridged to CPNumber, so you can use them interchangeably (including operators and methods).
Definition at line 38 of file CPNumber.j.
- (BOOL) boolValue | [implementation] |
Definition at line 195 of file CPNumber.j.
- (char) charValue | [implementation] |
Definition at line 201 of file CPNumber.j.
- (CPComparisonResult) compare: | (CPNumber) | aNumber | [implementation] |
Definition at line 296 of file CPNumber.j.
- (CPDecimal) decimalValue | [implementation] |
Definition at line 209 of file CPNumber.j.
- (CPString) description | [implementation] |
Definition at line 221 of file CPNumber.j.
- (CPString) descriptionWithLocale: | (CPDictionary) | aDictionary | [implementation] |
Definition at line 214 of file CPNumber.j.
- (double) doubleValue | [implementation] |
Definition at line 226 of file CPNumber.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder | [implementation] |
Definition at line 318 of file CPNumber.j.
- (float) floatValue | [implementation] |
Definition at line 232 of file CPNumber.j.
- (CPString) hash | [implementation] |
Definition at line 187 of file CPNumber.j.
- (id) initWithBool: | (BOOL) | aBoolean | [implementation] |
Definition at line 116 of file CPNumber.j.
- (id) initWithChar: | (char) | aChar | [implementation] |
Definition at line 121 of file CPNumber.j.
- (id) initWithCoder: | (CPCoder) | aCoder | [implementation] |
Definition at line 313 of file CPNumber.j.
- (id) initWithDouble: | (double) | aDouble | [implementation] |
Definition at line 129 of file CPNumber.j.
- (id) initWithFloat: | (float) | aFloat | [implementation] |
Definition at line 134 of file CPNumber.j.
- (id) initWithInt: | (int) | anInt | [implementation] |
Definition at line 139 of file CPNumber.j.
- (id) initWithLong: | (long) | aLong | [implementation] |
Definition at line 144 of file CPNumber.j.
- (id) initWithLongLong: | (long long) | aLongLong | [implementation] |
Definition at line 149 of file CPNumber.j.
- (id) initWithShort: | (short) | aShort | [implementation] |
Definition at line 154 of file CPNumber.j.
- (id) initWithUnsignedChar: | (unsigned char) | aChar | [implementation] |
Definition at line 159 of file CPNumber.j.
- (id) initWithUnsignedInt: | (unsigned) | anUnsignedInt | [implementation] |
Definition at line 167 of file CPNumber.j.
- (id) initWithUnsignedLong: | (unsigned long) | anUnsignedLong | [implementation] |
Definition at line 172 of file CPNumber.j.
- (id) initWithUnsignedShort: | (unsigned short) | anUnsignedShort | [implementation] |
Definition at line 182 of file CPNumber.j.
- (int) intValue | [implementation] |
Definition at line 238 of file CPNumber.j.
- (BOOL) isEqualToNumber: | (CPNumber) | aNumber | [implementation] |
Definition at line 304 of file CPNumber.j.
- (long long) longLongValue | [implementation] |
Definition at line 244 of file CPNumber.j.
- (long) longValue | [implementation] |
Definition at line 250 of file CPNumber.j.
+ (id) numberWithBool: | (BOOL) | aBoolean | [implementation] |
Definition at line 45 of file CPNumber.j.
+ (id) numberWithChar: | (char) | aChar | [implementation] |
Definition at line 50 of file CPNumber.j.
+ (id) numberWithDouble: | (double) | aDouble | [implementation] |
Definition at line 58 of file CPNumber.j.
+ (id) numberWithFloat: | (float) | aFloat | [implementation] |
Definition at line 63 of file CPNumber.j.
+ (id) numberWithInt: | (int) | anInt | [implementation] |
Definition at line 68 of file CPNumber.j.
+ (id) numberWithLong: | (long) | aLong | [implementation] |
Definition at line 73 of file CPNumber.j.
+ (id) numberWithLongLong: | (long long) | aLongLong | [implementation] |
Definition at line 78 of file CPNumber.j.
+ (id) numberWithShort: | (short) | aShort | [implementation] |
Definition at line 83 of file CPNumber.j.
+ (id) numberWithUnsignedChar: | (unsigned char) | aChar | [implementation] |
Definition at line 88 of file CPNumber.j.
+ (id) numberWithUnsignedInt: | (unsigned) | anUnsignedInt | [implementation] |
Definition at line 96 of file CPNumber.j.
+ (id) numberWithUnsignedLong: | (unsigned long) | anUnsignedLong | [implementation] |
Definition at line 101 of file CPNumber.j.
+ (id) numberWithUnsignedShort: | (unsigned short) | anUnsignedShort | [implementation] |
Definition at line 111 of file CPNumber.j.
- (short) shortValue | [implementation] |
Definition at line 256 of file CPNumber.j.
- (CPString) stringValue | [implementation] |
Definition at line 262 of file CPNumber.j.
- (unsigned char) unsignedCharValue | [implementation] |
Definition at line 267 of file CPNumber.j.
- (unsigned int) unsignedIntValue | [implementation] |
Definition at line 272 of file CPNumber.j.
- (unsigned long) unsignedLongValue | [implementation] |
Definition at line 284 of file CPNumber.j.
- (unsigned short) unsignedShortValue | [implementation] |
Definition at line 290 of file CPNumber.j.