I'm rounding up a positive number to the nearest thousand like if you type 10 it should return 1000, working fine until you type a big number like 1000000000000000000000 the result is this 1e+21, how can I avoid this and just let it show all the numbers? the code I'm using is this
value = Math.ceil(value/1000)*1000;
$(element).val(value);
Thank you