I have this code that i am trying to use to convert string of binary to decimal value. However, i am getting the following error:
Value was either too large or too small for a UInt64.
string a = "10100000100100110110010000010101111011011001101110111111111101000000101111001110001111100001101";
ulong value = Convert.ToUInt64(a, 2);
Console.WriteLine(value);
I have tried every possible solution available on the internet, but i'm still not getting the proper solution.