+ 1

How to use very big numbers on c++?

Hello guys,I have got very interesting question,how do we use large numbers.I think the biggest integer that c++ can hold is "unsigned long long int".Also "double" can handle large numbers but we can't use "%" on doubles.There is "fmod()" function which takes mod of doubles but that is not correct.Is there anyway to patch c++ large numbers?If yes please show me how to install it.I am using devcpp 4.9.2 on windows.

3rd Apr 2017, 7:49 AM
Muhammetnur Amangeldiýew
1 ответ
+ 11
You seem to be asking for a bignum library for C++. Please check out the links in the thread below: http://stackoverflow.com/questions/12988099/big-numbers-library-in-c
3rd Apr 2017, 9:38 AM
Hatsy Rei
Hatsy Rei - avatar