【发布时间】:2016-06-30 20:25:46
【问题描述】:
我需要在 c# 的变量中保存 2 的 1024 次幂 我该怎么办? 我试过这个:
label1.Text = "0";
decimal res = 0;
res += System.Convert.ToDecimal(Math.Pow(2, 1024));
label1.Text = System.Convert.ToString(res);
【问题讨论】:
-
使用 BigInteger - msdn.microsoft.com/en-us/library/…
-
这是一个巨大的数字。它将有300多个数字。我希望你的标签真的很长。