FileZilla FTP Client

From FileZilla Wiki
Revision as of 13:57, 5 May 2012 by 146.145.140.157 (Talk)

Jump to: navigation, search

First of all, thank you for your good job with JFL.I think that I have found a bug in it, version 1.6.1.It is in OandaSource, line 39.When amunot is too big, the call to Float.toString(amunot) returns a String that is encoded in scientific notation (like 2.20065649E10).This notation is not accepted by Oanda, and the conversion fails.This bug can be fixed just by replacing this function by this code:- private static NumberFormat nfen = NumberFormat.getInstance(new Locale( EN )); public float getConverted(float amunot, String symbolFrom, String symbolTo) throws ConversionException{ String result = getOandaExchangeRate(nfen.format(amunot),symbolFrom, symbolTo); return Float.parseFloat(result); }-