I would like to know the available phone memory, so I wrote this code.
File path2 = Environment.getDataDirectory(); StatFs stat2 = new StatFs(path.getPath()); lo
If I understood your question right you need NumberFormat here:
NumberFormat
NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(1); nf.format(5.654707363);
produces 5,7