Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 830 Bytes

README.md

File metadata and controls

14 lines (14 loc) · 830 Bytes

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