Name
NSDecimalNumberBehaviors — Mac OS X 10.0
Synopsis
This protocol defines the interface to objects that control aspects
of the behavior of NSDecimalNumber
objects. In
particular, there are three methods that classes implement to specify
rounding behavior, number precision, and a means for
handling calculation errors. The Foundation framework implements this
protocol in the class NSDecimalNumberHandler
.
@protocol NSDecimalNumberBehaviors
|
// Instance Methods
|
- (NSRoundingMode)roundingMode;
|
- (short)scale;
|
- (NSDecimalNumber *)exceptionDuringOperation:(SEL)operation error:(NSCalculationError)error leftOperand:(NSDecimalNumber *)leftOperand rightOperand:(NSDecimalNumber *)rightOperand; |
@end |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.