Tries to convert string to BigInteger
using System;
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger number1, number2;
bool succeeded1 = BigInteger.TryParse("-999999999999999999", out number1);
bool succeeded2 = BigInteger.TryParse("8888888888888888888", out number2);
}
}
Related examples in the same category