bfintal / Counter-Up

Counter-Up is a lightweight jQuery plugin that counts up to a targeted number when the number becomes visible.
http://bfintal.github.io/Counter-Up/demo/demo.html
GNU General Public License v2.0
746 stars 722 forks source link

fixed rounding errors in overcomplicated integer handling #29

Closed opif closed 5 years ago

opif commented 8 years ago

Removed the separate code path for integers because it introduced rounding errors with some combinations of delay and time. Integer divisions are still being handled correctly through toFixed(0)

This resolves #8.