use traps in ExtendedDecimalToDecimal