BigInt
BigInt copied to clipboard
Arbitrary-sized integer class for C++
The following functions that generate a random `BigInt` need to be implemented under `include/functions/random.hpp`: - [x] Having specific number of digits: ```C++ friend BigInt big_random(size_t num_digits); ``` Returns a random...
**Note**: type `T` can be a `BigInt`, `std::string` or ```long long```. - [x] `pow` ```C++ BigInt pow(const T& base, int exponent); ``` Returns the value of baseexponent. - [x] `sqrt`...
https://gmplib.org/manual/Installing-GMP I am learning c++, and doing an course assignment which require big integer I ‘ve done a test for this BigInt library and GNU MP Bignum Library this library...
This pull adds the assignment operators for the bitwise operators open feature request, as well as my own take on the base operators. Closes #60
Why don't we add bitwise operators here? ## Features for bitwise operation ### 1. bitwise opeartors - bitwise OR ( | ) - bitwise AND ( & ) - bitwise...
I think it will be useful for the BigInt to take hex as input and represent it as BigInt and support all the operations? Let me know what you think...
Add `decimal` functions to calculate decimal places. e.g. ```c++ std::cout
Instead of having the number's magnitude stored in a string, it would be much more efficient, in terms of both time and space, to have it stored in a vector...
Excited to submit my first pull request for the repository. I know harish-vnkt already submitted a pull request for bitwise left and right shifts, but I added the other primary...