Here you can find the source of isUnscaledValueEqualsOriginal(BigDecimal bigDecimal, BigInteger bigInteger)
private static boolean isUnscaledValueEqualsOriginal(BigDecimal bigDecimal, BigInteger bigInteger)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.math.BigInteger; public class Main { private static boolean isUnscaledValueEqualsOriginal(BigDecimal bigDecimal, BigInteger bigInteger) { return bigDecimal.equals(new BigDecimal(bigInteger)); }//w w w . j a v a 2 s .co m }