NSDecimalPower(_:_:_:_:)
Raises the decimal value to the specified power.
Declaration
func NSDecimalPower(_ result: UnsafeMutablePointer<Decimal>, _ number: UnsafePointer<Decimal>, _ power: Int, _ roundingMode: NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationErrorDiscussion
Raises number to power, possibly rounding off according to roundingMode, and stores the resulting value 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(_:_:_:_:)NSDecimalSubtract(_:_:_:_:)NSDecimalDivide(_:_:_:_:)NSDecimalMultiply(_:_:_:_:)NSDecimalMultiplyByPowerOf10(_:_:_:_:)NSDecimalRound(_:_:_:_:)NSDecimalNormalize(_:_:_:)Decimal.RoundingModeNSDecimalNumber.RoundingModeDecimal.CalculationErrorNSDecimalNumber.CalculationError