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 PostIf you want to switch to Java it supports the Big Int class... but there is nothing bigger that I know of in C++.
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.