This is an multiple-precision floating-point type; it can represent numbers of the form m*2e, where m is an arbitrary precision integer based on the Gnu Multiple Precision Arithmetic Library, and e is of type long. This type can be considered exact, even if the exponent is not a multiple-precision number. This number type offers functionality very similar to MP_Float but is generally faster.
#include <CGAL/Gmpzf.h>
| |
creates a Gmpzf initialized with 0.
| |
| |
creates a Gmpzf initialized with i.
| |
| |
creates a Gmpzf initialized with l.
| |
| |
creates a Gmpzf initialized with i.
| |
| |
creates a Gmpzf initialized with f.
| |
| |
creates a Gmpzf initialized with d.
|
|
| writes a double approximation of f to the ostream out. |
|
| writes an exact representation of f to the ostream out. |
|
| reads a double from in, then converts it to a Gmpzf. |