Decimal
public extension Decimal
                - 
                  
                  
Constructs a
MonetaryAmountfrom aDecimalwith a givenCurrencyExample:
let money = Decimal(string: "28.529372")!.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
        Decimal Extension Reference