Just wanted to know... is there any variable in C++ that can hold larger numbers than unsigned long long int
, or is it the largest variable?
Thanks in advance :P
unbeatable0 32 Junior Poster in Training
Recommended Answers
Jump to PostIf you can't fit the value into a long int or a long double (or long long, if your compiler supports), you need some kind of arbitrary length arithmetic type, which isn't native to C++.
Jump to PostTell us what compiler/ide you are using?
But the following link would be the obvious choice.
Jump to Post>so, are there some classes that people made for huge numbers handling?
Yes. I would recommend GMP as well.>I like working with big numbers
It should go without saying that using such a library is extremely likely to be slower than built in types. If you don't need …
All 10 Replies
Narue 5,707 Bad Cop Team Colleague
unbeatable0 32 Junior Poster in Training

iamthwee
dmanw100 36 Posting Whiz in Training
unbeatable0 32 Junior Poster in Training
Narue 5,707 Bad Cop Team Colleague
Sci@phy 97 Posting Whiz in Training
TheBeast32 54 Posting Whiz in Training
ArkM 1,090 Postaholic
dmanw100 36 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.