NSDecimalSubtract(_:_:_:_:)
Subtracts one decimal value from another.
Declaration
func NSDecimalSubtract(_ result: UnsafeMutablePointer<Decimal>, _ leftOperand: UnsafePointer<Decimal>, _ rightOperand: UnsafePointer<Decimal>, _ roundingMode: NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationErrorDiscussion
Subtracts rightOperand from leftOperand and stores the difference, possibly rounded off according to roundingMode, in result.
For explanations of the possible return values and rounding modes, see NSDecimalAdd(_:_:_:_:).
For more information, see Number and Value Programming Topics.
See Also
Performing arithmetic using references
NSDecimalCompact(_:)NSDecimalAdd(_:_:_:_:)NSDecimalDivide(_:_:_:_:)NSDecimalMultiply(_:_:_:_:)NSDecimalMultiplyByPowerOf10(_:_:_:_:)NSDecimalRound(_:_:_:_:)NSDecimalPower(_:_:_:_:)NSDecimalNormalize(_:_:_:)Decimal.RoundingModeNSDecimalNumber.RoundingModeDecimal.CalculationErrorNSDecimalNumber.CalculationError