index.js
function padLeft(x, padding) {
  x = x + '';
  var buf = [];
  while (buf.length + x.length < padding) {
    buf.push('0');
  }
  return buf.join('') + x;
}
function padLeft(x, padding) {
  x = x + '';
  var buf = [];
  while (buf.length + x.length < padding) {
    buf.push('0');
  }
  return buf.join('') + x;
}
function padLeft ( x , padding ) { x = x + '' ; var buf = [ ] ; while ( buf . length + x . length < padding ) { buf . push ( '0' ) ; } return buf . join ( '' ) + x ; }
where x is the integer part of the number
where x is the integer part of the number