Here you can find the source of format(final BigDecimal bd)
Parameter | Description |
---|---|
bd | a parameter |
public static String format(final BigDecimal bd)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.text.NumberFormat; public class Main { private static final NumberFormat NUMBER_FORMAT = NumberFormat.getInstance(); /**/* ww w. jav a2 s. c o m*/ * return a Number formatted or empty string if null. * * @param bd */ public static String format(final BigDecimal bd) { return bd != null ? NUMBER_FORMAT.format(bd) : ""; } }