}
@Test
public void testIntPow() {
final int maxExp = 300;
DfpField field = new DfpField(40);
final double base = 1.23456789;
Dfp baseDfp = field.newDfp(base);
Dfp dfpPower = field.getOne();
for (int i = 0; i < maxExp; i++) {
Assert.assertEquals("exp=" + i, dfpPower.toDouble(), FastMath.pow(base, i),
0.6 * FastMath.ulp(dfpPower.toDouble()));
dfpPower = dfpPower.multiply(baseDfp);
}