Fixed a few cases in the Math functions where floating point impresission caused integral math to yield incorrect results. Fixes #2893.
Merge pull request #201 from CyaNox/master

Fixed a few cases in the Math functions where floating point imprecision...