Corrected a bug in the parsing of the double value which depends on the current Locale.