optimizations to fromDecimal()