C# BigInteger Parse(String)
Description
BigInteger Parse(String)
Converts the string representation
of a number to its BigInteger equivalent.
Syntax
BigInteger.Parse(String)
has the following syntax.
public static BigInteger Parse(
string value
)
Parameters
BigInteger.Parse(String)
has the following parameters.
value
- A string that contains the number to convert.
Returns
BigInteger.Parse(String)
method returns A value that is equivalent to the number specified in the value parameter.
Example
using System;/*w w w .j ava2s . c om*/
using System.IO;
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger number1 = BigInteger.Parse("123123123123123123");
Console.WriteLine(number1);
}
}
The code above generates the following result.