Using Large Integer Values - CSharp Language Basics

CSharp examples for Language Basics:BigInteger

Description

Using Large Integer Values

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
class MainClass
{
   static void Main(string[] args)
   {
      BigInteger myBigInt = BigInteger.Multiply(Int64.MaxValue, 2);
      myBigInt = BigInteger.Add(myBigInt, Int64.MaxValue);
      Console.WriteLine("Big Integer Value: {0}", myBigInt);
   }
}

Related Tutorials