in

.NET Opensource

Community for opensource projects by Christoph Rüegg

Bigger than ULONG.. what do I do now?

Last post 10-30-2006 7:52 by jjj. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-19-2006 18:17

    • John
    • Top 50 Contributor
    • Joined on 10-19-2006
    • Posts 1

    Bigger than ULONG.. what do I do now?

    Hello, I am writing a program that finds primary numbers, I have already hit the limit of what .net variables can hold ulong (18446744073709551615) I need to work with interger (whole numbers) larger than the one mentioned, does anybody have any advaice, would this math.net library help me?
  • 10-20-2006 11:33 In reply to

    Re: Bigger than ULONG.. what do I do now?

    Math.Net indeed will have support for large and arbitrary precision numbers, but it's still under construction (-> Natural class, for big positive integers, but e.g. doesn't support division yet)

    In the meantime you may want to have a look at some BigInteger ports to C#, e.g. http://www.codeproject.com/csharp/biginteger.asp

  • 10-30-2006 7:52 In reply to

    • jjj
    • Top 25 Contributor
    • Joined on 07-02-2006
    • Posts 5

    Re: Bigger than ULONG.. what do I do now?

    Meanwhile the decimal structure might be useful, it's 96bit and supports division and all.
Page 1 of 1 (3 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems