String与Double相互转换

String text = Double.toString(result);

result = Double.parseDouble(text.trim());

你可能感兴趣的:(String与Double相互转换)