Fixed negatives in toDecimal()