Trying to create an infinite counter that starts at 10.41 and increases by 10.41 every second. Have looked at various tutorials but I cannot find one that will account for the increase with a decimal number unit (10.41) every second. This is the code I am using:
setTimeout(start, 0);
var i = 100;
var num = document.getElementById('number');
function start() {
setInterval(increase, 100);
}
function increase() {
if (i < 100000) {
i++;
num.innerText = i;
}
}