Here you can find the source of getDefaultDecimalFormat()
public static DecimalFormat getDefaultDecimalFormat()
//package com.java2s; //License from project: Open Source License import java.text.*; public class Main { /**/*from w w w . j a v a 2 s. com*/ * Gets a default decimal format that should be used for formatting decimal values. * * @return A default decimal format. */ public static DecimalFormat getDefaultDecimalFormat() { final DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols(); decimalFormatSymbols.setDecimalSeparator('.'); final DecimalFormat format = new DecimalFormat("#0.000", decimalFormatSymbols); format.setGroupingUsed(false); return format; } }