A class that adopts the decimal number behaviors protocol.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
This class allows you to set the way an
NSDecimal object rounds off and handles errors, without having to create a custom class.
You can use an instance of this class as an argument to any of the
NSDecimal methods that end with
...Behavior:. If you don’t think you need special behavior, you probably don’t need this class—it is likely that
NSDecimal's default behavior will suit your needs.
For more information, see the
NSDecimal protocol specification.