assertTrue("the bigInteger equivalent of -29830.989 is wrong", result
.toString().equals("-29830"));
sub1 = new BigDecimal(-2837E10);
result = sub1.toBigInteger();
assertTrue("the bigInteger equivalent of -2837E10 is wrong", result
.doubleValue() == -2837E10);
sub1 = new BigDecimal(2.349E-10);
result = sub1.toBigInteger();
assertTrue("the bigInteger equivalent of 2.349E-10 is wrong", result
.equals(BigInteger.ZERO));