Multiplies a decimal by the specified power of 10.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
func NSDecimalMultiplyByPowerOf10(_ result: Unsafe Mutable Pointer<Decimal>, _ number: Unsafe Pointer<Decimal>, _ power: Int16, _ roundingMode: NSDecimal Number.Rounding Mode) -> NSDecimal Number.Calculation Error
Discussion
Multiplies number
by power
of 10 and stores the product, possibly rounded off according to rounding
, in result
.
For explanations of the possible return values and rounding modes, see NSDecimal
.
For more information, see Number and Value Programming Topics.