String.format("%.1f", var)); //Change 1 to the number of decimal places you want //Output is a String