Tag: Zeroes

Padding Zeroes to an integer value in C#

If you need to prefix zeroes to an integer when converting it to string values , you can do that by using the PadLeft method in c#. Just specify the number of characters to prefix (padding) and the charater to prefix to the method and you are done 🙂 Below is a sample sourcecode to demonstrate Padding Zeroes to an integer value in C#