Resolve issue #77 "Integer division done wrong"

Made 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.