I'm doing the exponent of a number and I need the result to come out in a specific format, however I do not know how to do it, it follows the code:
double num1 = 290287121823;
double num2 = 538783;
double resultado = Math.Pow(num1, 2) + num2;
My code is bringing 8.42666130962812E + 22 but what I need is 84266613096281243382112. How do I do this? I tried formats with .ToString()
and forced conversion to BigInteger
of System.Numerics
but did not work.