Implement Decimal mode. Now passing Bruce Clark's Decimal Mode tests.