Here you can find the source of decimal2string(BigDecimal arg, Locale loc)
public static String decimal2string(BigDecimal arg, Locale loc)
//package com.java2s; import java.math.BigDecimal; import java.text.NumberFormat; import java.util.*; public class Main { public static String decimal2string(BigDecimal arg, Locale loc) { if (arg == null) return null; return NumberFormat.getInstance(loc).format(arg); }/*w w w . j av a 2s . co m*/ }