As it turns out .toFixed() returns strings – Try adding parseFloat before comparing the values to see the result:
console.log(parseFloat(value) < parseFloat(max)); // ---- now true
As it turns out .toFixed() returns strings – Try adding parseFloat before comparing the values to see the result:
console.log(parseFloat(value) < parseFloat(max)); // ---- now true