Fix floating point inaccuracy in edge cases, behavior not consistent across different browsers and/or devices
Merge pull request #1492 from jounii/float-math-fix

Fix floating point inaccuracy in edge cases, behavior not consistent