Here you can find the source of formatDouble(Object value)
public static String formatDouble(Object value)
//package com.java2s; // it under the terms of the GNU General Public License as published by import java.text.NumberFormat; public class Main { public static String formatDouble(Object value) { NumberFormat doubleFormat = NumberFormat.getNumberInstance(); return doubleFormat.format(((Number) value).doubleValue()); }/* w w w .j a v a 2 s . c o m*/ }