String a = "-732546982374982347892379283571094797287346782359284756";
int aScale = 0;
BigInteger bA = new BigInteger(
"-732546982374982347892379283571094797287346782359284756");
BigDecimal aNumber = new BigDecimal(a);
assertEquals("incorrect value", bA, aNumber.unscaledValue());
assertEquals("incorrect scale", aScale, aNumber.scale());
}
/**
* Test that constructing BigDecimals from zeros works properly.