How to use BigInteger in VS 2010

I am trying to use the BigInteger type, supposedly new in the .NET Framework 4.0.

It seems I can’t get to it and get an error when I try to reference it using System.Numerics.

Any idea what I'm doing wrong? Sorry if this is a stupid question ...

+5
source share
4 answers
  • Add the link to the System.Numerics assembly to your project.

    and. In Solution Explorer, right-click the node project and click Add Link .

    b. In the Add Link dialog box, select the .NET tab .

    . System.Numerics, .

  • , System.Numerics:

    using System.Numerics;
    
  • BigInteger:

    var i = new BigInteger(934157136952);
    
+11

System.Numerics?

→ → .NET → System.Numerics → OK

+3

System.Numerics.

using System.Numerics; statement

+1
source

Have you added a link to the project (Project ... Add Link ...) to System.Numerics?

+1
source

All Articles