The big integer class is used for mathematical operation which involves very big integer calculations that are outside the limit of all available primitive data types. For example factorial of 100 contains 158 digits in it so it cannot be stored in any primitive data type. This is a representation of big integer, written in pure C++.
The "number" is actually represented with a dynamic character array in this implementation.
- Addition +, +=
- Subtraction -, -=
- Multiplication *, *=
- Assignment =
- Equals ==
- Not !
- Less than <, <=
- Greater than >, >=
- Pre-increment ++
- Post-increment ++
- Pre-decrement --
- Post-decrement --
- Conversion string()
- Output <<
- Input >>
- Constructors
- Destructor
- convertToString
- strLen
Need help? Got any queries? Feel free to hit me up at [email protected].