Removed dependency on Apfloat. Moved to BigDecimal.