【问题标题】:How to use the BigInteger class in MonoDevelop?如何在 MonoDevelop 中使用 BigInteger 类?
【发布时间】:2016-05-20 14:13:16
【问题描述】:

我在 Linux Mint 中使用 MonoDevelop。

我的问题是我找不到引用“System.Numerics”,否则我在使用 Windows 时可以在 VisualStudio 中轻松找到。

我特别想将 BigInteger 用于更大的值。 我能找到的最接近的是这个库:https://biginteger.codeplex.com/;由于我无法链接它,这对我来说并没有真正起作用。

(这是我在这里能找到的唯一与我的问题类似的东西,虽然对我不起作用:Mono missing System.Numerics.BigInteger.Parse(string,IFormatProvider)。欢迎任何其他允许我使用大于 20 位数字的建议。)

【问题讨论】:

    标签: c# monodevelop biginteger linux-mint system.numerics


    【解决方案1】:

    为您的项目添加对System.Numerics 的引用:

    使用:

    using System.Numerics
    

    用法:

    var bigInt = new BigInteger();
    

    【讨论】:

    • 谢谢先生。欣赏添加的照片帮助我区分了我应该在哪里搜索它。我的问题是由于我没有打开解决方案而无法单击编辑引用。再次感谢您。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-20
    • 1970-01-01
    相关资源
    最近更新 更多