You could try to use a Decimal Formatter. Just add the import, and then write the line

DecimalFormat fmt = new DecimalFormat("##.0");

Then use your new formatter on the number you're printing....