Enumeration

NSCalculationError

Calculation error constants used to describe an error in exceptionDuringOperation:error:leftOperand:rightOperand:.

Declaration

typedef enum NSCalculationError : NSUInteger {
    ...
} NSCalculationError;

Topics

Constants

NSCalculationNoError

No error occurred.

NSCalculationLossOfPrecision

The number can’t be represented in 38 significant digits.

NSCalculationOverflow

The number is too large to represent.

NSCalculationUnderflow

The number is too small to represent.

NSCalculationDivideByZero

The caller tried to divide by 0.

See Also

Performing Arithmetic Using References

NSDecimalCompact

Compacts the decimal structure for efficiency.

NSDecimalAdd

Adds two decimal values.

NSDecimalSubtract

Subtracts one decimal value from another.

NSDecimalDivide

Divides one decimal value by another.

NSDecimalMultiply

Multiplies two decimal numbers together.

NSDecimalMultiplyByPowerOf10

Multiplies a decimal by the specified power of 10.

NSDecimalRound

Rounds off the decimal value.

NSDecimalPower

Raises the decimal value to the specified power.

NSDecimalNormalize

Normalizes the internal format of two decimal numbers to simplify later operations.

NSRoundingMode

These constants specify rounding behaviors.