Here you can find the source of formatDouble(final double value)
public static String formatDouble(final double value)
//package com.java2s; //License from project: Open Source License public class Main { public static final String DOUBLE_FORMAT = "%.6f"; public static String formatDouble(final double value) { return String.format(DOUBLE_FORMAT, value); }/* w w w . j a v a 2s .c om*/ }