I have a number in Javascript, that I know is less than 10000 and also non-negative. I want to display it as a four-digit number, with leading zeroes. Is there anything more e
Another one:
function format_number_length(num, length) { var r = num.toString(); if (r.length