private DecimalFormat df = new DecimalFormat("0.0"); double x=123.4567; tOutput.setText( df.format(x) );