Thread: Re: [Dev-C++] How do I store HUGE numbers.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: David M. <ci...@ya...> - 2003-08-05 23:04:52
|
Talking bigger than long int. I am doing some math processing and would like either some example code or a library. Together with a int (or some other data type for the exponent) it will also give me a very high precision floating point data type. ----- Original Message ----- From: "Scott Simontis SIMONTIS" <age...@co...> To: <ci...@ya...> Sent: Tuesday, August 05, 2003 1:46 PM Subject: Re: [Dev-C++] How do I store HUGE numbers. > long int is my way. > > ~~Scott Simontis~~ > Programmer > > ----- Original Message ----- > From: David McKen <ci...@ya...> > Date: Tuesday, August 5, 2003 1:06 pm > Subject: [Dev-C++] How do I store HUGE numbers. > > > OK boy and girls. > > > > Other than allocating a block of memory and interpreting > > each of the bits myself how can I store really big numbers > > (Let's stick with integers for now) in memory. > > > > Signed > > David Mcken > > > > P.S. Also for any of you looking for job security. > > http://mindprod.com/unmain.html - How To Write > > Unmaintainable Code > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site design software > > http://sitebuilder.yahoo.com > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites > including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click- > > > url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01________________ > _______________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
|
From: Hossein H. <ult...@em...> - 2003-08-16 16:10:17
|
Dear David, > Other than allocating a block of memory and interpreting > each of the bits myself how can I store really big numbers > (Let's stick with integers for now) in memory. I've got a heavy STLised library available at: http://www.programmersheaven.com/search/download.asp?FileID=26357 I describe it hifty, as it uses a pure vector as the storage. I have written a better version that uses a boost::shared_ptr to the vector as the storage. But, unfortunately, it is not downloadable. If you think you will need a copy of it, or want to test it, send me an email to send the file to you directly. I'm waiting to catch a time to implement a better version, but I always lack it! Anyway, it is likely that I start and finish this process in the few following days. If you are not in a hurry, and want the library to be more reliable, it could be better to wait. Regards, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: David M. <ci...@ya...> - 2003-08-16 23:08:34
|
Cool, It looks like it is exactly what I want. I would apeciate it if you would tell me when you complete it. Thanks in Advance David McKen ----- Original Message ----- From: "Hossein Haeri" <ult...@em...> To: <dev...@li...> Sent: Saturday, August 16, 2003 12:09 PM Subject: Re: [Dev-C++] How do I store HUGE numbers. > Dear David, > > > Other than allocating a block of memory and interpreting > > each of the bits myself how can I store really big numbers > > (Let's stick with integers for now) in memory. > > I've got a heavy STLised library available at: > > http://www.programmersheaven.com/search/download.asp?FileID=26357 > > I describe it hifty, as it uses a pure vector as the storage. > > I have written a better version that uses a boost::shared_ptr to > the vector as the storage. But, unfortunately, it is not > downloadable. If you think you will need a copy of it, or want to > test it, send me an email to send the file to you directly. > > I'm waiting to catch a time to implement a better version, but I > always lack it! Anyway, it is likely that I start and finish this > process in the few following days. If you are not in a hurry, and > want the library to be more reliable, it could be better to wait. > > Regards, > --Hossein > -- > __________________________________________________________ > Sign-up for your own personalized E-mail at Mail.com > http://www.mail.com/?sr=signup > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job search > http://corp.mail.com/careers > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
|
From: Per W. <pw...@ia...> - 2003-08-17 00:27:36
|
Have you looked at the GNU MP library (GMP). http://www.swox.com/gmp/ It has good documentation, a large number of functions, and is well tested. /Per W On Sat, 16 Aug 2003, David McKen wrote: > Cool, > It looks like it is exactly what I want. > > I would apeciate it if you would tell me when you complete > it. > > Thanks in Advance > David McKen > > ----- Original Message ----- > From: "Hossein Haeri" <ult...@em...> > To: <dev...@li...> > Sent: Saturday, August 16, 2003 12:09 PM > Subject: Re: [Dev-C++] How do I store HUGE numbers. > > > > Dear David, > > > > > Other than allocating a block of memory and > interpreting > > > each of the bits myself how can I store really big > numbers > > > (Let's stick with integers for now) in memory. > > > > I've got a heavy STLised library available at: > > > > > http://www.programmersheaven.com/search/download.asp?FileID=26357 > > > > I describe it hifty, as it uses a pure vector as the > storage. > > > > I have written a better version that uses a > boost::shared_ptr to > > the vector as the storage. But, unfortunately, it is not > > downloadable. If you think you will need a copy of it, or > want to > > test it, send me an email to send the file to you > directly. > > > > I'm waiting to catch a time to implement a better > version, but I > > always lack it! Anyway, it is likely that I start and > finish this > > process in the few following days. If you are not in a > hurry, and > > want the library to be more reliable, it could be better > to wait. > > > > Regards, > > --Hossein > > -- > > > __________________________________________________________ > > Sign-up for your own personalized E-mail at Mail.com > > http://www.mail.com/?sr=signup > > > > CareerBuilder.com has over 400,000 jobs. Be smarter about > your job search > > http://corp.mail.com/careers > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET > sites including > > Data Reports, E-commerce, Portals, and Forums are > available now. > > Download today and enter to win an XBOX or Visual Studio > .NET. > > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: > http://www23.brinkster.com/noicys/devcpp/ub.htm > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Hossein H. <ult...@em...> - 2003-08-17 11:31:11
|
Dear David, > Cool, > It looks like it is exactly what I want. Thanks. > I would apeciate it if you would tell me when you complete > it. Well, I don't really know. But, I hope to finish it whithin the few next weaks (if no disaster jumps in). Do you want to test the version using boost::shared_ptr<>, meanwhile? > Thanks in Advance You'r welcome freind, no need to thanks! Regards, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: Hossein H. <ult...@em...> - 2003-08-17 11:43:58
|
Dear Per, > Have you looked at the GNU MP library (GMP). > http://www.swox.com/gmp/ Thank you for informing me about a new link. > It has good documentation, a large number of functions, and is well > tested. Oh yeah! It seems so (and I'm sure that's actually the case). But, maybe it is not that bad to let my library to be tested. Anyway, if David needs a reliably tested library, there is another one that is so reliable in comparison with mine. I don't have a direct link to it, but it is (likely to be) named BigInt (or some variation of it) , and it is somewhere whithin the boost huge repository. It is best to search for it in: http://www.boost.org Regards, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: Per W. <pw...@ia...> - 2003-08-17 12:33:05
|
GMP isn't just big integers - it also contains code for big real numbers. /Per W On Sun, 17 Aug 2003, Hossein Haeri wrote: > Dear Per, > > > Have you looked at the GNU MP library (GMP). > > http://www.swox.com/gmp/ > > Thank you for informing me about a new link. > > > It has good documentation, a large number of functions, and is well > > tested. > > Oh yeah! It seems so (and I'm sure that's actually the case). > But, maybe it is not that bad to let my library to be tested. > Anyway, if David needs a reliably tested library, there is > another one that is so reliable in comparison with mine. I don't > have a direct link to it, but it is (likely to be) named BigInt > (or some variation of it) , and it is somewhere whithin the boost > huge repository. It is best to search for it in: > > http://www.boost.org > > Regards, > --Hossein > > -- > __________________________________________________________ > Sign-up for your own personalized E-mail at Mail.com > http://www.mail.com/?sr=signup > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job search > http://corp.mail.com/careers > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Hossein H. <ult...@em...> - 2003-08-17 21:55:12
|
Per, > GMP isn't just big integers - it also contains code for big real numbers. Thanks again, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |