Here you can find the source of formatToEightPlaces(double pValue)
public static String formatToEightPlaces(double pValue)
//package com.java2s; import java.text.DecimalFormat; public class Main { public static String formatToEightPlaces(double pValue) { DecimalFormat df = new DecimalFormat("#,###,###,##0.00000000"); return df.format(pValue); }/*ww w . ja v a 2 s .co m*/ }