How to output integers with leading zeros in JavaScript

Posted by chris on Stack Overflow See other posts from Stack Overflow or by chris
Published on 2010-06-08T15:28:23Z Indexed on 2010/06/08 15:32 UTC
Read the original article Hit count: 117

I can round to x amount of decimal places with math.round but is there a way to round left of the decimal? for example 5 becomes 05 if I specify 2 places

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about text-formatting