Enumeration

NSDecimalNumber.CalculationError

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

Declaration

enum CalculationError : UInt

Topics

Constants

case noError

No error occurred.

case lossOfPrecision

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

case overflow

The number is too large to represent.

case underflow

The number is too small to represent.

case divideByZero

The caller tried to divide by 0.

See Also

Performing Arithmetic Using References

func NSDecimalCompact(UnsafeMutablePointer<Decimal>)

Compacts the decimal structure for efficiency.

typealias Decimal.RoundingMode

An alias for an enumeration that specifies possible rounding modes.

enum NSDecimalNumber.RoundingMode

These constants specify rounding behaviors.

typealias Decimal.CalculationError

An alias for a type that specifies possible calculation errors.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software