Add SKY.tools namespace, Add SKY.tools.ntos method

master
Harald Wolff 2019-05-15 13:14:30 +02:00
parent 3fe96e5a20
commit 3137017450
1 changed files with 9 additions and 0 deletions

View File

@ -131,6 +131,15 @@
}
}
this.tools = {
ntos: function(n,l){
n = n.toString();
while (n.length < l){
n = "0" + n;
}
return n;
}
}
/* Final construction */