【发布时间】:2014-04-09 15:23:28
【问题描述】:
大家好,我有一个 20 个字符的数字,如下 34432523434234423434,我尝试使用 long,UInt64 进行这种转换,但我仍然遇到异常 Value was either too large or too small 所以有人可以帮我解决如何转换它价值
【问题讨论】:
-
试试
Decimal.Parse,decimal数据类型适合你的需要。 -
将其转换为大整数
BigInteger i = new BigInteger(); i = BigInteger.Parse("34432523434234423434");
标签: c#