DynamicRoundedDecimal
public extension DynamicRoundedDecimal
-
Constructs a
MonetaryAmountfrom aDynamicRoundedDecimalwith a givenCurrencyExample:
let roundedDecimal = DynamicRoundedDecimal(...) let money = roundedDecimal.in(.USD)Declaration
Swift
func `in`(_ currency: Currency) -> MonetaryAmountParameters
currencyThe target currency for the amount, e.g.
Currency.USDReturn Value
A
MonetaryAmountfromselfwith the givenCurrency
View on GitHub
DynamicRoundedDecimal Extension Reference