Hi,
For very large numbers, use a
BigInteger
(supported in .NET 4.5, 4 and .NET 4 Client Profile):
http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx[
^]
using System.Numerics;
BigInteger dec = BigInteger.Parse("1011406131533376933715533");
string hex = dec.ToString("X");
Console.WriteLine(hex);
string hex2 = "0D62C6FAE52427AB5DE4D";
BigInteger dec2 = BigInteger.Parse(hex2, System.Globalization.NumberStyles.HexNumber);
Console.WriteLine(dec2);
Hope this helps.