Here you can find the source of getNumberFormatter()
private static NumberFormat getNumberFormatter()
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.text.NumberFormat; public class Main { private static NumberFormat numberFormatter; private static NumberFormat getNumberFormatter() { if (numberFormatter == null) { DecimalFormatSymbols otherSymbols = new DecimalFormatSymbols(); otherSymbols.setDecimalSeparator('.'); numberFormatter = new DecimalFormat("0.0#######", otherSymbols); }//from www. java 2 s . c om return numberFormatter; } }