NSDecimalNumberBehaviors
A protocol that declares three methods that control the discretionary aspects of working with decimal numbers.
Declaration
protocol NSDecimalNumberBehaviorsOverview
The scale() and roundingMode() methods determine the precision of NSDecimalNumber’s return values and the way in which those values should be rounded to fit that precision. The exceptionDuringOperation(_:error:leftOperand:rightOperand:) method determines the way in which an NSDecimalNumber object should handle different calculation errors.
For an example of a class that adopts the NSDecimalBehaviors protocol, see the specification for NSDecimalNumberHandler.