我有一个应用程序,其中有一个需要将温度从摄氏温度转换为华氏温度的部分,但由于某种原因,只有几个手机型号(如 htc 渴望和索尼爱立信 X10)它在这部分崩溃,但我不知道为什么。谁能帮忙?
double cel = x/10;
finalTFF = 9.0f/5.0f * cel + 32.0;
DecimalFormat twoDForm = new DecimalFormat("##.0");
double NfinalTFF = Double.valueOf(twoDForm.format(finalTFF));
return twoDForm.format(NfinalTFF);