fixes floatingpoint to int precision error
Merge pull request #53 from woeishi/master

fixes floatingpoint to int precision error