Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.22 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.22 KB

Big_Int_project

BigInt is a C++ library file that is used to handle very big integers. It can be very useful in calculating very big numbers calculations. It consists of an inbuilt function that can be beneficial to use.

Info

  1. BigNumber is a header-only library for working with integer values bigger than the hardware limit.
  2. BigNumber has no additional dependencies and is as simple to use as possible.

Arithmetic operators

  1. addition:- BigInt operator +(BigInt x);
  2. subtraction:- BigInt operator -(BigInt x);
  3. multiplication:- BigInt operator *(BigInt x);
  4. division:- BigInt operator /(BigInt x);
  5. modulus:- BigInt operator %(BigInt x);

Relational operators

  1. bool operator ==(const BigInt &x) const;
  2. bool operator <(const BigInt &x) const;
  3. bool operator <=(const BigInt &x) const;
  4. bool operator >(const BigInt &x) const;
  5. bool operator >=(const BigInt &x) const;

Increment and Decrement operators

  1. BigInt &operator++();
  2. BigInt &operator--();

Contributing

Contributions are welcome, fork this repo, change it, open a pull request or an issue. Make sure no tests are failing.

License

All code is licensed under MIT.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.