public static int convertCelsiusToFahrenheit(Long celcious){
return Math.round(celcious * 9/5 + 32);
}
TextField に設定しようとしています。に値を設定できませんText Field
。なぜなら、NumberFormatException が発生しているためです。精度の値で送信するにはどうすればよいですか。
holder.textItem.setText(convertCelsiusToFahrenheit(Long.parseLong(
custom.getTemperature())));
java.lang.NumberFormatException: 無効な長い: "32.2222222222222"