Index: src/OFNumber.h ================================================================== --- src/OFNumber.h +++ src/OFNumber.h @@ -296,10 +296,15 @@ /*! * @brief The OFNumber as a `double`. */ @property (readonly, nonatomic) double doubleValue; +/*! + * @brief The OFNumber as a string. + */ +@property (readonly, nonatomic) OFString *stringValue; + #ifdef OF_HAVE_UNAVAILABLE + (instancetype)valueWithBytes: (const void *)bytes objCType: (const char *)objCType OF_UNAVAILABLE; + (instancetype)valueWithPointer: (const void *)pointer OF_UNAVAILABLE; + (instancetype)valueWithNonretainedObject: (id)object OF_UNAVAILABLE; Index: src/OFNumber.m ================================================================== --- src/OFNumber.m +++ src/OFNumber.m @@ -1114,10 +1114,15 @@ { return [self retain]; } - (OFString *)description +{ + return [self stringValue]; +} + +- (OFString *)stringValue { OFMutableString *ret; switch (_type) { case OF_NUMBER_TYPE_BOOL: