locked
BigInteger RRS feed

  • Question

  • Hello,

    Can you tell me how to download BigInteger library for .Netframework 4.0? so that I can use it with C#4.

    Thanks,

    Tarfa

    Saturday, September 24, 2011 8:08 PM

Answers

  • BigInteger is included in .NET 4 - there's no need to download a library.

    Just add a reference to System.Numerics.dll, and "using System.Numerics;" at the top of your C# file, or Import the namespace if you're using VB.NET.


    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    • Marked as answer by Min Zhu Tuesday, September 27, 2011 6:08 AM
    Saturday, September 24, 2011 8:14 PM

All replies

  • BigInteger is included in .NET 4 - there's no need to download a library.

    Just add a reference to System.Numerics.dll, and "using System.Numerics;" at the top of your C# file, or Import the namespace if you're using VB.NET.


    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    • Marked as answer by Min Zhu Tuesday, September 27, 2011 6:08 AM
    Saturday, September 24, 2011 8:14 PM
  • Tarfa,

    In order to use the BigInteger class in a C# project:

    1.  In Solution Explorer, go to your References and do an Add Reference for System.Numerics.

    2.  Put a using statement in your code to automatically access the System.Numerics library: 

    using System.Numerics
    



    Tom Overton
    Saturday, September 24, 2011 8:21 PM
  • Ok, Thank you so much, but how about using it in Java?

    Tarfa

    Saturday, September 24, 2011 9:21 PM
  • Ok, Thank you so much, but how about using it in Java?

    Tarfa

    I'd ask in a Java forum about java - this is a .NET forum.  However, BigInteger is built-in in Java as well, directly in java.lang.Number.  See: http://download.oracle.com/javase/1,5.0/docs/api/java/math/BigInteger.html
    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    Saturday, September 24, 2011 10:31 PM
  • Thanks a lot.
    Sunday, September 25, 2011 12:57 AM
  • hi tarafayaseen you can mark the post(one which answered your question) as answered also
    Mark Answered, if it solves your question
    Rohit Arora
    Monday, September 26, 2011 6:08 AM