Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Testing different left padding techniques to find the most versatile and quickest method. For this Stack Overflow question: http://stackoverflow.com/questions/1267283/how-can-i-create-a-zerofilled-value-using-javascript
<script>
var theNum = 9;
var thePadNum = 2000;
// Jack B
function pad1(str, max, padder) {
padder = typeof pad1der === "undefined" ? "0" : padder;
return str.toString().length < max ? pad1(padder.toString() + str, max, padder) : str;
}
// Peter Bailey
function pad2( number, width )
{
width -= number.toString().length;
if ( width > 0 )
{
return new Array( width + (/\./.test( number ) ? 2 : 1) ).join( '0' ) + number;
}
return number + ""; // always return a string
}
// Wilco
function pad3(number, length) {
// Setup
var result = number.toString();
var pad1 = length - result.length;
while(pad1 > 0) {
result = '0' + result;
pad1--;
}
return result;
}
// Coderjoe
// -- FAILS --
function pad4(num, numZeros) {
var n = Math.abs(num);
var zeros = Math.max(0, numZeros - Math.floor(n).toString().length );
var zeroString = Math.pow(10,zeros).toString().substr(1);
if( num < 0 ) {
zeroString = '-' + zeroString;
}
return zeroString+n;
}
// Jonathan Neal (1)
// -- FAILS --
function pad5(num, count) {
return [Math.pow(10, count - num.toString().length), num].join('').substr(1);
};
// Jonathan Neal (2)
// -- FAILS --
function pad6(num, count) {
var pad = (num + '').length - count;
while(--pad > -1) {
num = '0' + num;
}
return num;
};
// Rodringo
// -- FAILS --
function pad7(n, c) {
if (isNaN(c))
return null;
return (new Array(c).join("0").substring(0, n.length-c)) + n;
}
// Julian Mann
// -- FAILS --
function pad8(n,pad) {
p = Math.pow(10,pad);
a = Math.abs(n);
g = (n<0);
return (a < p) ? ((g ? '-' : '') + (p+a).toString().substring(1)) : n;
}
// profitehlolz
function pad9(n, p, c) {
var pad_char = typeof c !== 'undefined' ? c : '0';
var pad = new Array(1 + p).join(pad_char);
return (pad + n).slice(-pad.length);
}
// Madbreaks
function pad10(toPad, length){
padChar = "0";
return (String(toPad).length < length)
? new Array(length - String(toPad).length + 1).join(padChar) + String(toPad)
: toPad;
}
// boost
// -- FAILS --
function pad11(num, len) {
return(0 > num ? "-" : "") + (Math.pow(10, len) <= Math.abs(num) ? "0" + Math.abs(num) : Math.pow(10, len) + Math.abs(num)).toString().substr(1)
}
// Aleksandar Toplek / Vitim.us
// -- FAILS --
function pad12(number, digits) {
var num = number+"";
while(num.length < digits){
num='0'+num;
}
return num;
}
// zenril
function pad13(i,number) {
paddingChar = "0";
var padding = new Array(number + 1).join(paddingChar);
return padding.substr(0, padding.length - (Math.floor(i).toString().length)) + Math.floor(i );
}
// tir
function pad14(x, y)
{
if(y > 20 || y < 0) return;
y = Math.max(y-1,0);
var n = (x / Math.pow(10,y)).toFixed(y);
return n.replace('.','');
}
// Fabio Napodano
// -- FAILS --
function pad15(value, nLength)
{
var sValue = value + ''; //converts to string
if(sValue.length>=nLength)
return sValue;
else
{
for(var nZero = 0; nZero < nLength; nZero++)
sValue = "0" + sValue;
return (sValue).substring(nLength - sValue.length, nLength);
}
}
var start = +new Date();
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
pad1(theNum,thePadNum);
console.log(pad1(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
pad2(theNum,thePadNum);
console.log(pad2(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
pad3(theNum,thePadNum);
console.log(pad3(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
pad4(theNum,thePadNum);
console.log(pad4(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
pad5(theNum,thePadNum);
console.log(pad5(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
pad6(theNum,thePadNum);
console.log(pad6(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
pad7(theNum,thePadNum);
console.log(pad7(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
pad8(theNum,thePadNum);
console.log(pad8(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
pad9(theNum,thePadNum);
console.log(pad9(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
pad10(theNum,thePadNum);
console.log(pad10(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
pad11(theNum,thePadNum);
console.log(pad11(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
pad12(theNum,thePadNum);
console.log(pad12(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
pad13(theNum,thePadNum);
console.log(pad13(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
pad14(theNum,thePadNum);
console.log(pad14(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
var start = +new Date();
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
pad15(theNum,thePadNum);
console.log(pad15(theNum,thePadNum));
var end = +new Date();
console.log(end - start);
</script>
@DavidePastore

Why not use an iteration for each function call?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.