Instance Methods | |
(CPDecimalNumber) | - exceptionDuringOperation:error:leftOperand:rightOperand: |
(CPRoundingMode) | - roundingMode |
(short) | - scale |
Definition at line 141 of file CPDecimalNumber.j.
|
implementation |
This method is invoked by the framework when an exception occurs on a decimal operation. Depending on the specified behaviour of the CPDecimalNumberHandler this will throw exceptions accordingly with formatted error messages.
operation | the selector of the method of the operation being performed when the exception occurred |
error | the actual error type. From the CPCalculationError enum: CPCalculationNoError, CPCalculationLossOfPrecision, CPCalculationOverflow, CPCalculationUnderflow, CPCalculationDivideByZero |
leftOperand | the CPDecimalNumber left-hand side operand used in the calculation that caused the exception |
rightOperand | the CPDecimalNumber right-hand side operand used in the calculation that caused the exception |
Extends class CPDecimalNumberHandler.
Definition at line 180 of file CPDecimalNumber.j.
|
implementation |
Returns the current rounding mode. One of CPRoundingMode enum: CPRoundPlain, CPRoundDown, CPRoundUp, CPRoundBankers.
Extends class CPDecimalNumberHandler.
Definition at line 148 of file CPDecimalNumber.j.
|
implementation |
Returns the number of digits allowed after the decimal point.
Extends class CPDecimalNumberHandler.
Definition at line 157 of file CPDecimalNumber.j.