Java BigDecimal from toBigIntString(final BigDecimal bigD)

Here you can find the source of toBigIntString(final BigDecimal bigD)

Description

to Big Int String

License

Apache License

Declaration

public static String toBigIntString(final BigDecimal bigD) 

Method Source Code


//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
}

Related

  1. toBigDecimal(Vector doubleVector)
  2. toBigDecimalArray(int[] ints)
  3. toBigDecimalList(double... list)
  4. toBigDecimalList(List list)
  5. toBigInteger(@Nullable final BigDecimal value)