An open API service indexing awesome lists of open source software.

https://github.com/leksus-04/big_int-for-cpp

C++ big integer implementation
https://github.com/leksus-04/big_int-for-cpp

big-int big-integer-arithmetic big-integer-in-c cplusplus

Last synced: about 1 year ago
JSON representation

C++ big integer implementation

Awesome Lists containing this project

README

          

This is my big integer class implementation for C++. You can use it to perform following operations on numbers of any size:
1. Arithmetical operators: +, -, *, /, %;
2. Boolean operators: >, <, ==, <=, >=;
3. Unary operators: -, +;
4. Assignment operators: = (to big_int=big_int, big_int=string and big_int=int);
5. Input/output operators: >>, <<;
6. Increment and decrement operators: both prefix and postfix ++, both prefix and postfix --;
7. Arithmetic operators with assignment: +=, -=, *=, /=, %=;
8. 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