Posts tagged as:

Integer

Formatting Integers in C#

by Dave on September 21, 2009

in String Operations

In this post I am going to show you a few different ways how you can format an integer (int). Padding with Zeroes To pad your integer with zeroes write your format string with a colon (‘:’) and include as many zeroes as you wish after the colon ({0:[your zeroes]}). Below are a few examples. [...]

{ 0 comments }