fix remainder for equal values
Merge pull request #1 from arkdro/master

Fix remainder