try it
totext (your_number, "000000");
1st argument: Well, this is the input.
2nd arg .: The number of digits you need in the output.
For ex,
num = 1234;
totext (num, "000000");
Conclusion:
001234
And if you want to add a fixed number of zeros, you can just use (add 3 leading zeros):
"000" + totext (your_number, 0);// 3
. , .