mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-14 06:23:55 +01:00
10 lines
178 B
Plaintext
10 lines
178 B
Plaintext
|
function string_lead_zero(val, digit) {
|
||
|
var len = string_length(string(val));
|
||
|
var zer = digit - len;
|
||
|
|
||
|
var ss = "";
|
||
|
repeat(zer) ss += "0";
|
||
|
ss += string(val);
|
||
|
|
||
|
return ss;
|
||
|
}
|