Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我们想要Convert/Parse跟随字符串
Convert/Parse
string mystring = "221021290110000123452229211210282900128222900"
对一个号码
这个数字是什么类型的?
我测试Double.TryParse(mystring,out myBigNumber)了,但我得到了一个E+不能用于我的数学运算的数字,因为模运算会导致错误的数字
Double.TryParse(mystring,out myBigNumber)
E+
var bigNumber = BigInteger.Parse(mystring);
见BigInteger.Parse。
BigInteger.Parse
据我所知BigInteger,受限于您可用的内存量。
BigInteger
BigInteger是您正在寻找的