Resolve issue #77 "Integer division done wrong"

This commit makes the rounding function round towards zero instead of just down.

This resolves issue #77 in the tracker.

A typo was made in the commit message in which "issue #76" was resolved. That should read "issue #77" instead.