off by one error...
Refactored a bit and added non regression tests for github issues
Updated README with my findings on the online tool
Merge pull request #4 from raphaelmor/fix-issue-3

Rounding and limit case now works better