Java BigDecimal Create getBigDecimal(BigDecimal bigDecimal)

Here you can find the source of getBigDecimal(BigDecimal bigDecimal)

Description

get Big Decimal

License

Apache License

Declaration

public static String getBigDecimal(BigDecimal bigDecimal) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;

public class Main {
    public static String getBigDecimal(BigDecimal bigDecimal) {
        if (bigDecimal == null)
            return "0";
        return bigDecimal.toString();
    }/*from   w w w.j  av a 2  s. com*/
}

Related

  1. createBigDecimal(double v)
  2. createBigDecimal(final String value)
  3. createBigDecimal(Object value)
  4. createBigDecimal(String val)
  5. getBdIgnoreNull(BigDecimal bigDecimalPara)
  6. getBigDecimal(double value, int decimals)
  7. getBigDecimal(final String str, final int scale)
  8. getBigDecimal(JsonObject object, String memberName)
  9. getBigDecimal(Map map, String attr)