Skip to content

NSMutableNumber v1.2.3

Choose a tag to compare

@belisoful belisoful released this 11 Aug 07:31
· 9 commits to master since this release

Implements a thread-safe NSMutableNumber functionally equivalent NSNumber with additional features in NSNumber.

  • Updates the compare: method to ensure full compatibility with NSNumber, especially around NAN and -0.0.
  • Supports NSCoder without keyCoding for older versions of Apple's OSes.
  • Adds NSMutableNumber and NSNumber class property constructors for infinity, minusInfinity, NaN, zero, negativeZero, and one.
  • Adds isPositiveZero and isNegativeZero (for real numbers).
  • Greater unit test coverage
  • Adds an NSMockNumber class to test encoded numbers that are not implemented by NSNumber.