Type Property

defaultDecimalNumberHandler

Returns the default instance of NSDecimalNumberHandler.

Declaration

@property(class, readonly, strong) NSDecimalNumberHandler *defaultDecimalNumberHandler;

Return Value

The default instance of NSDecimalNumberHandler.

Discussion

This default decimal number handler rounds to the closest possible return value. It assumes your need for precision does not exceed 38 significant digits, and it raises an exception when its NSDecimalNumber object tries to divide by 0 or when its NSDecimalNumber object produces a number too big or too small to be represented.

See Also

Creating a Decimal Number Handler

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software