Instance Method

decimalNumberByRoundingAccordingToBehavior:

Returns a rounded version of the decimal number using the specified rounding behavior.

Declaration

- (NSDecimalNumber *)decimalNumberByRoundingAccordingToBehavior:(id<NSDecimalNumberBehaviors>)behavior;

Discussion

For a description of the different ways of rounding, see the roundingMode method in the NSDecimalNumberBehaviors protocol specification.