LtXmlLib16::CBigInteger Class

A class to hold arbitrarily long integer numbers. The class is designed primarily as a container for such numbers, and the additional functionality (addition/subtraction/division/multiplication) is provided on an unsupported basis. It is recommended that such numbers are extracted from this class in the form of a LONGLONG (int64) or string, and used in this form.

Members | Description | |||

Abs | Changes the current object to contain the absolute value. | |||

CBigInteger | Constructor | |||

GetAbs | Returns a copy containing the absolute value. | |||

GetNegative | Returns a copy containing -1 * the value. | |||

int() | Converts the Big Int to an int, throws if out of range . | |||

LONGLONG() | Converts the Big Int to a LONGLONG (int64) throws if out of range . | |||

Negate | Multiplies the current object by -1. | |||

operator== | Compares this objects data with another objects | |||

operator!= | Compares this objects data with another objects | |||

operator< | Compares this objects data with another objects | |||

operator> | Compares this objects data with another objects | |||

operator<= | Compares this objects data with another objects | |||

operator>= | Compares this objects data with another objects | |||

operator+ | Adds a Big Int to the current value | |||

operator- | Subtracts a Big Int from the current value | |||

operator* | Multiples a Big Int with the current value | |||

operator/ | Divides the current value by a Big Int . | |||

operator% | Divides the current value by a Big Int, and returns the remainder | |||

operator+= | In-place Add operator | |||

operator-= | In-place Subtraction operator | |||

operator*= | In-place multiplication operator | |||

operator/= | In-place division operator | |||

operator%= | In-place modulus operator | |||

Parse | Parses the value contained in a string into the class. | |||

Pow10 | Gets a BigInteger object that is 10 ^ x | |||

SquareRoot | Returns the square root of the current value | |||

ToString | Converts the current value to a string. |