Here you can find the source of toBigIntString(final BigDecimal bigD)
public static String toBigIntString(final BigDecimal bigD)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.math.RoundingMode; public class Main { public static String toBigIntString(final BigDecimal bigD) { return bigD.setScale(0, RoundingMode.HALF_UP).toBigInteger().toString(); }// www .j av a2 s .c o m }