1
I’m developing a system, where I have to start counting at 1:00 and go all the way to a number that will be chosen in the database.
What I want to know is how I can make a rising counter in nodes, which rises from one hundredth to one hundredth, or 1.01 ; 1.02 etc... Until I reach the value I desire.
However the higher the number goes, the faster it will go up, then it will go up faster and faster.
Note: It does not involve thousandths of second or anything related to time but yes, the higher the number rising even faster it will continue to rise.
How can I do this in nodejs?
Thank you.
Can you describe the increment model with a mathematical formula? Or describe 1.01 > 1.02 > ... and then? 1.03 or 1.035, or 1.04?
– Sergio
Gonçalo you saw my question? ^
– Sergio
Sorry Sergio, I had no internet access only today can see. What I want does not have any mathematical "formula", but the most similar one is for example: from 1.01 to 2, take 30 seconds. from 2 to 3 take 25 seconds... But the count is 1.01 to 0.01 of 0.01
– Gonçalo
Okay, is that something you’re looking for? https://jsfiddle.net/85rLudgo/
– Sergio
Gonçalo, you’ve seen my jsFiddle? ^
– Sergio
Yes that’s right! Sorry for the delay, but I was waiting for a friend of mine to analyze himself. It is he who is helping me in the project.
– Gonçalo
If there is an answer that solves the problem you can mark as accepted.
– Sergio