I have a ulong
value that I need to raise to a high power, but Math.Pow
does not successfully produce a correct output.
My c# code:
ulong a = 9123456789;
ulong b = (ulong)Math.Pow(a, 9999);
Console.WriteLine(b);
The output to screen is 0. How can I perform this calculation and obtain a correct result?