I have this code:
StringBuilder sbp = new StringBuilder().append(
String.valueOf((temp / 10F)))
.append(" \260C / ").append(String.valueOf((temp/10F)*9/5+32))
.append(" \260F");
and I get this result:
29.8 C / 85.641 F
I want to format the float numbers to show max 1 digit after decimals, 85.6 instead of 85.641