Differences
This shows you the differences between the selected revisions of the page.
2009-07-01 | 2009-09-12 | ||
4.2.2 bug 197 (martin) | tabs to 4 spaces (martin) | ||
Line 46: | Line 46: | ||
function pad(n, len) | function pad(n, len) | ||
{ | { | ||
- | ·var s = n.toString(); | + | ····var s = n.toString(); |
- | ·while (s.length < len) | + | ····while (s.length < len) |
- | ·{ | + | ····{ |
- | ·····s = '0' + s; | + | ········s = '0' + s; |
- | ·} | + | ····} |
- | ·return s; | + | ····return s; |
} | } | ||