System.Int32.ToString Method

Converts the numeric value of this instance to its equivalent string representation.


public override string ToString ()


The string representation of the value of this instance, consisting of a negative sign if the value is negative, and a sequence of digits ranging from 0 to 9 with no leading zeroes.


The int.ToString method formats an int value in the default ("G", or general) format by using the System.Globalization.NumberFormatInfo object of the current culture. If you want to specify a different format or culture, use the other overloads of the int.ToString(string) method, as follows:

Default ("G") format

A specific culture


A specific format

Default (current) culture


A specific format

A specific culture

int.ToString(string, IFormatProvider)

The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:


Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,