code: private String format(double n) {
          NumberFormat nf = NumberFormat.getNumberInstance(Locale.ENGLISH);
          nf.setMaximumFractionDigits(1);
          nf.setGroupingUsed(false);
          return nf.format(n);
      }
docs: Format a double single fraction digit.
  
  @param n
  @return