Int32.ToString Method (String)
using System;
using System.Globalization;
public class ParseInt32
{
public static void Main()
{
int value = -11111;
string specifier;
// Use standard numeric format specifier.
specifier = "G";
Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier));
}
}
//G: -11111
Related examples in the same category