Fixed precision loss; round is better than floor here.
Reformat for clarity (subjective of course)
Merge pull request #1 from davebalmer/master

Nice small lib; couple changes