Talk About Network

Google





Programming > C - C++ Learning > Re: Large integ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 8 Topic 4090 of 4400
Post > Topic >>

Re: Large integers in C++

by Tino Raspari <junk-1@[EMAIL PROTECTED] > Apr 3, 2008 at 10:41 AM

Vincent Petruccelli wrote:

> I am writing a program that deals with large integers: more than 8
digits.
> Eventually, I hope to use integers with about 100 digits. So far, I have
> tried using long and unsigned long as the variable type. However, the
> results of calculations become inaccurate when integers with 9 or more
> digits are used.
> 
> The calculations themselves are fairly simple: squaring, addition and
> subtraction in modular arithmetic.
> 
> Any help much appreciated.

You also could write a class, which manage an integer array...
Just by the Way^^
Use GMP instead ;-)
-- 
-=Computer tun nicht, was sie sollen, sie tun das, was man ihnen sagt.=-
 




 8 Posts in Topic:
Large integers in C++
"Vincent Petruccelli  2008-04-01 20:14:37 
Re: Large integers in C++
Gianni Mariani <gi4nos  2008-04-01 20:25:09 
Re: Large integers in C++
"Vincent Petruccelli  2008-04-01 21:49:20 
Re: Large integers in C++
"Skybuck Flying"  2008-04-11 01:54:51 
Re: Large integers in C++
Bart van Ingen Schenau &l  2008-04-11 19:17:31 
Re: Large integers in C++
"TheDevil" <  2008-04-12 05:27:58 
Re: Large integers in C++
"Moschops" <  2008-12-03 11:38:48 
Re: Large integers in C++
Tino Raspari <junk-1@[  2008-04-03 10:41:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 9:34:16 PST 2009.