         input = 0
     }
 
-    private func convertToCurrency(value: Double, code: String, locale: String?, symbol: String?) -> String {
+    private func convertToCurrency(value: Double, code: String, locale: String?, symbol: String?, decimals: Int) -> String {
         let formatter = NSNumberFormatter()
         formatter.numberStyle = NSNumberFormatterStyle.CurrencyStyle
         


    func inputValue() -> String {
        let inputValue: Double = input
        return convertToCurrency(inputValue, code: inputCurrency.code, locale: inputCurrency.locale, symbol: inputCurrency.symbol)
    }

    func outputValue() -> String {
        let outputValue: Double = convertToOutputCurrency(input)
        return convertToCurrency(outputValue, code: outputCurrency.code, locale: outputCurrency.locale, symbol: outputCurrency.symbol)
    }
    
    func convertToInputCurrency(number: Double) -> Double {

        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)
