/BigInt-Library-in-Cpp

Big Integer Library in C++

Primary LanguageC++

BigInt-Library-in-C++

Big Integer Library in C++

Using the library

A. Put : #include "bigint.h" at the top of your file and the bigint.h file should be in the same directory .

B. These functions are supported by the bigInteger Library:

All the functions returns a single string which is the result . Except the division function which returns pair<string,string> the first element being the quotient and the second being the remainder.

  1. Addition : add(string a, string b)
  2. Subtraction : sub(string a, string b)
  3. Multiplication : mul(string a, string b)
  4. Division : div(string a, string b)
  5. Exponentiation : fast_pow(string base,string exp)
  6. HCF/GCD of two numbers : hcf(string a, string b)
  7. Factorial of a number : fact(string a)