Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


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

Re: Large integers in C++

by Gianni Mariani <gi4nospam@[EMAIL PROTECTED] > Apr 1, 2008 at 08:25 PM

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.


Look up GMP.
 




 7 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++
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
tan12V112 Fri Nov 21 11:36:44 CST 2008.