NSNumber

From GNUstepWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A container fromat for numeric interchange.

NSNumber is used in GNUStep frameworks to provide an abstraction for numbers until they must be used to call native APIs, at the expense of a minor performance hit. Operations requiring values to be computed in a tight loop should consider using primitive datatypes to avoid overhead.