Avoid unnecessary conversions to string and integer it causes rounding errors
Merge pull request #3 from matt423/master

Avoid unnecessary conversions to string and integer it causes rounding errors