Counter-Up icon indicating copy to clipboard operation
Counter-Up copied to clipboard

Try using 1981

Open stuffthatspins opened this issue 9 years ago • 5 comments

1981 resolves to 1980...

stuffthatspins avatar Jul 19 '16 14:07 stuffthatspins

Hello, I found some strange bugs.. if i enter 1999 then it's counts till 1998..Also same for 1981 it's counts till 1980. Can you please guide ? Thanks, Ajay

ghost avatar Jul 22 '16 11:07 ghost

Change this line:

var newNum = parseInt(num / divisions * i);

for:

var newNum = parseInt(Math.round(num / divisions * i));

adrigm avatar Oct 27 '16 14:10 adrigm

It should be fixed in my fork, can you tell me if it's working for you? Thanks!

ciromattia avatar Feb 24 '17 17:02 ciromattia

I tried this and it worked - from: var l = parseInt(i / n * f); to var l = parseInt(Math.round(i / n * f));

ShawnRamseyMedia avatar Oct 23 '18 15:10 ShawnRamseyMedia

The same problem for 1706. Take fix from https://raw.githubusercontent.com/ciromattia/jquery.counterup/master/jquery.counterup.min.js Thak you!

JavaOPs avatar Jan 13 '19 20:01 JavaOPs