-
May 8th, 2010, 05:09 AM
#1
64bit_int
Hello,
Is it possible to create an integer variable that can store more than 64 bits of information?
Thanks,
Niels
-
May 8th, 2010, 06:00 AM
#2
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.
-
May 8th, 2010, 10:25 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|