How can assign large numbers in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can assign large numbers in c++

3rd Jun 2020, 10:23 AM
Davron
Davron - avatar
5 Answers
+ 2
If you already have a boost dependency (which many people these days do), you can use the boost multi-precision library. In fact, it already has an example of a factorial program that can support output up to 128 bits, though extending it further is pretty trivial.
3rd Jun 2020, 10:26 AM
Abdulsalam Al-Ashwal
Abdulsalam Al-Ashwal - avatar
+ 1
Yes
3rd Jun 2020, 10:29 AM
Abdulsalam Al-Ashwal
Abdulsalam Al-Ashwal - avatar
0
long long int
3rd Jun 2020, 10:25 AM
꧁༒☬Bad☬Boy☬༒꧂
꧁༒☬Bad☬Boy☬༒꧂ - avatar
0
is it available for number with 100 digits
3rd Jun 2020, 10:28 AM
Davron
Davron - avatar
0
long double.
5th Jun 2020, 4:57 AM
DEATH128
DEATH128 - avatar