Function

NSDecimalCompact(_:)

Compacts the decimal structure for efficiency.

Declaration

func NSDecimalCompact(_ number: UnsafeMutablePointer<Decimal>)

Discussion

Formats number so that calculations using it will take up as little memory as possible. All the NSDecimal... arithmetic functions expect compact Decimal arguments.

For more information, see Number and Value Programming Topics.

See Also

Performing Arithmetic Using References

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