How to add zero before digits dynamically

Hi All,

How to add zero before some digits, for example the numbers length should be 11 digits some times the digits will be differ it may be 9 digits or 8 digits so on but I need to add zeros before the digits based on how many numbers are less than 11 digits, for example if the input digits have 8 digits i need to add 3 zeros before 8 digits,if the input digits have 6 digits i need to add 5 digits before 6 digits.
How can I achieve this??

Anyone help me please

1 Like


Check below for your reference


Hope this will help you


Hey @HeartCatcher

Hope this helps.



1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.