Converts the numeric value of the current BigInteger object to its equivalent string representation.
Assembly: System.Numerics (in System.Numerics.dll)
The return value is formatted using the general format specifier ("G"). The string representation of the BigInteger value includes a negative sign if its value is negative, and a sequence of digits ranging from 0 to 9 without leading zeros. The negative sign is defined by the NumberFormatInfo object for the current culture.
The method supports 50 decimal digits of precision. That is, if the BigInteger value has more than 50 digits, only the 50 most significant digits are preserved in the output string; all other digits are replaced with zeros.
To define the formatting of the integer value's string representation, call the ToString(String) method. To define the culture whose formatting is used in the integer value's string representation, call the ToString(IFormatProvider) method. To define both the format specifier and culture used in creating the string representation of an integer value, call the ToString(String, IFormatProvider) method.
The following example displays a BigInteger value by using the default method. It also displays the string representations of the BigInteger value that results from using some standard format specifiers. The examples are displayed using the formatting conventions of the en-US culture.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.