64bit_int
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: 64bit_int

  1. #1
    Join Date
    Mar 2010
    Posts
    6

    64bit_int

    Hello,

    Is it possible to create an integer variable that can store more than 64 bits of information?

    Thanks,
    Niels

  2. #2
    Join Date
    Aug 2009
    Location
    Romania->Felnac
    Posts
    48

    Re: 64bit_int

    Yes, it is possible, that won't be an actual build-in integer (because for example: 128bit integer you create a class that has 4 32bit int members and operate with that) but with operator overloading you can make it act like an build-in int.

    Take a look here: http://en.wikipedia.org/wiki/Bignum there are some links to libraries that implement this so you don't have to implement it yourself.
    Last edited by Zlatomir; May 8th, 2010 at 06:03 AM.

  3. #3
    Join Date
    Jan 2009
    Posts
    1,689

    Re: 64bit_int

    GMP is the most widely used for large numbers. The precision is arbitrary. The floating point class is precise up to 41 billion digits.

    I'm pretty sure it's integer classes don't have a limit (other than your RAM of course.)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center