Here you can find the source of formatNormalDouble(double value)
public static String formatNormalDouble(double value)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; public class Main { public static String formatNormalDouble(double value) { String formattedDouble = formatDouble(value, "0.000"); return formattedDouble; }// w ww .ja v a 2 s . c om public static String formatDouble(double value, String format) { if (format == null) { return null; } DecimalFormat formatter = new DecimalFormat(format); String formattedValue = formatter.format(value); return formattedValue; } }