#StackBounty: #javascript #loops #numbers #settimeout #floating Javascript | Floating point numbers + interval loop

Bounty: 50

I have a floating point number (for example): 0.004178174922295

How could I get the decremental function to make a calculations from this number to 0 in specific amount of time (for example 1 second)?
Thanks.

Expected values:

0.004178174922295
0.004178174922294
0.004178174922293
...
0


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.