Returns the default instance of NSDecimal
.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
class var `default`: NSDecimal Number Handler { get }
Return Value
The default instance of NSDecimal
.
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 NSDecimal
object tries to divide by 0
or when its NSDecimal
object produces a number too big or too small to be represented.