How can I represent a very large integer in .NET?

后端 未结 5 2031
庸人自扰
庸人自扰 2020-12-01 13:48

Does .NET come with a class capable of representing extremely large integers, such as 100 factorial? If not, what are some good third party libraries to accomplish this?

5条回答
  •  醉梦人生
    2020-12-01 14:47

    Mono has a public BigInteger implementation already:

    http://www.go-mono.com/docs/index.aspx?link=T:Mono.Math.BigInteger

    You can just grab the Mono.Security assembly to use it; since its a Mono class library it should be MIT licensed too.

提交回复
热议问题