#include <bigint1.h>
Public Methods | |
BigInt () | |
BigInt (int) | |
BigInt (const apstring &) | |
const BigInt& | operator+= (const BigInt &) |
const BigInt& | operator-= (const BigInt &) |
const BigInt& | operator *= (const BigInt &) |
const BigInt& | operator *= (int num) |
apstring | ToString () const |
int | ToInt () const |
double | ToDouble () const |
bool | Equal (const BigInt &rhs) const |
bool | LessThan (const BigInt &rhs) const |
void | Print (ostream &os) const |
Private Types | |
enum | Sign { positive, negative } |
Private Methods | |
bool | IsNegative () const |
bool | IsPositive () const |
int | NumDigits () const |
int | GetDigit (int k) const |
void | AddSigDigit (int value) |
void | ChangeDigit (int k, int value) |
void | Normalize () |
Private Attributes | |
Sign | mySign |
apvector<char> | myDigits |
int | myNumDigits |
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by operator==(). |
|
|
|
|
|
|
|
Referenced by operator<(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|