mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 23:17:25 +01:00
10 lines
No EOL
178 B
Text
10 lines
No EOL
178 B
Text
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;
|
|
} |