Fixed rounding error problem
Merge pull request #1 from hesselbom/master

Fixed rounding error problem