cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Keeping numbers as big as 100^100
Keeping numbers as big as 100^100
Oct 8, 2011 at 1:19pm UTC
Sajjad Heydari
(45)
Hi there!
I need to keep 2 numbers as big as 100^100 and well i have to do sth like this:
First number -(or +) second .
Could you help me on it? Thanks!
Oct 8, 2011 at 1:26pm UTC
hamsterman
(4538)
Try
http://gmplib.org/
Oct 8, 2011 at 2:05pm UTC
ne555
(10692)
double
, but you lose precision.
Oct 8, 2011 at 2:15pm UTC
Sajjad Heydari
(45)
Got wrong answer with double
Any other idea?
Oct 8, 2011 at 2:23pm UTC
ne555
(10692)
Of course you will get WA if you needed
precision
If you "don't want" to use an extern library, then code your own bignum class. There was a thread in the Lounge about that.
Oct 8, 2011 at 2:25pm UTC
Sajjad Heydari
(45)
I can use standard libraries only , may i have the link?:-/
Oct 8, 2011 at 2:40pm UTC
ne555
(10692)
*sigh*, you are too lazy.
Read this
http://www.acmsolver.org/books/Programming_Challenges_Miguel_Skiena.pdf
Topic archived. No new replies allowed.