Skip to content

LeKSuS-04/big_int-for-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages