         inputCurrency.rate = 113.81;
         inputCurrency.locale = "ja_JP"
         inputCurrency.symbol = "¥"
+        inputCurrency.decimals = 0
         
         outputCurrency.code = "GBP";
         outputCurrency.rate = 0.71;
         outputCurrency.locale = "en_GB"
         outputCurrency.symbol = "£"
+        outputCurrency.decimals = 2
         
         requestUpdateForCurrencyExchangeRate(inputCurrency.code)
         requestUpdateForCurrencyExchangeRate(outputCurrency.code)

            fatalError("Error fetching currency: \(error)")
        }
        
        let rate:Double! = Double(currency.rateFromUSD!)
        
        return(currency.name!, currencyCode, rate, currency.locale, currency.symbol)
    
    }


class Converter {

    var input: Double
    var inputCurrency:(code: String, rate: Double, locale: String?, symbol: String?, decimals: Int)
    var outputCurrency:(code: String, rate: Double, locale: String?, symbol: String?, decimals: Int)
    
    init() {
        input = 0
