A very simple class for big integers (or approximation of them). More...
#include <bignum.hh>
Public Member Functions | |
| BigNum () | |
| ~BigNum () | |
| void | assign (const int n) |
| void | multiply (const int n) |
| size_t | print (FILE *const fp) const |
A very simple class for big integers (or approximation of them).
If the compile time flag BLISS_USE_GMP is set, then the GNU Multiple Precision Arithmetic library (GMP) is used to obtain arbitrary precision, otherwise "long double" is used to approximate big integers.
| bliss::BigNum::BigNum | ( | ) | [inline] |
Create a new big number and set it to zero.
| bliss::BigNum::~BigNum | ( | ) | [inline] |
Destroy the number.
| void bliss::BigNum::assign | ( | const int | n | ) | [inline] |
Set the number to n.
| void bliss::BigNum::multiply | ( | const int | n | ) | [inline] |
Multiply the number with n.
| size_t bliss::BigNum::print | ( | FILE *const | fp | ) | const [inline] |
Print the number in the file stream fp.
1.7.6.1