bliss: Source Code Documentation
0.73 (Debian 0.73-5)
|
A very simple class for big integers (or approximation of them). More...
#include <bignum.hh>
Public Member Functions | |
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.
|
inline |
Create a new big number and set it to zero.
|
inline |
Set the number to n.
|
inline |
Multiply the number with n.
|
inline |
Print the number in the file stream fp.