         outputCurrency.locale = currency.locale
         outputCurrency.symbol = currency.symbol
         outputCurrency.rate = currency.rate
+        outputCurrency.decimals = currency.decimals
         requestUpdateForCurrencyExchangeRate(currency.code)
     }
 

        inputCurrency.locale = currency.locale
        inputCurrency.symbol = currency.symbol
        inputCurrency.rate = currency.rate
        requestUpdateForCurrencyExchangeRate(currency.code)
    }


        
    }
    
    private func getCurrencyRecord(currencyCode: String) -> (name: String, code: String, rate: Double, locale: String?, symbol: String?, decimals: Int)  {
        
        // CoreData setup.
        let managedObjectContext: NSManagedObjectContext!
