This is my big integer class implementation for C++. You can use it to perform following operations on numbers of any size:
- Arithmetical operators: +, -, *, /, %;
- Boolean operators: >, <, ==, <=, >=;
- Unary operators: -, +;
- Assignment operators: = (to big_int=big_int, big_int=string and big_int=int);
- Input/output operators: >>, <<;
- Increment and decrement operators: both prefix and postfix ++, both prefix and postfix --;
- Arithmetic operators with assignment: +=, -=, *=, /=, %=;
- Other math functions:
- abs(big_int): returns absolute value of a number
- fact(big_int): returns factorial of a number
- pow(big_int, big_int): raises number to given non-negative power
- sqrt(big_int): calculates square root of a number
- root(big_int, big_int): Calculates root of a given degree from a number