java.lang.NumberFormatException while executing in France machine
问题 In below code while parsing the value sometimes i am facing NumberFormat Exception in France machine. double txPower; DecimalFormat df = new DecimalFormat("##.##"); txPower = txPower + getDeltaP(); log.info("txpower value is -- "+txPower); txPower = Double.parseDouble(df.format(txPower)); protected double getDeltaP() { return isNewChannelAddition ? apaConfig.deltaPadd : apaConfig.deltaPtune; } logs: txpower value is -- -7.9 java.lang.NumberFormatException: For input string: "-7,9" 回答1: I