Fix negative number handling (use absolute value)
Merge pull request #1 from kerryb/master

Fix negative number handling (use absolute value)