Convert to integers for calculations.
Merge pull request #2 from lawlesst/patch-1

Convert to integers for calculations.