fix the scaling issue for decimals > 2.
Merge pull request #2 from lifthrasiir/fix-scaling

Fix the scaling issue for decimals > 2.