CGAL::Gmpz

Definition

An object of the class Gmpz is an arbitrary precision integer based on the Gnu Multiple Precision Arithmetic Library.

#include <CGAL/Gmpz.h>

Is Model for the Concepts

EuclideanRing

RealEmbeddable

Creation

Gmpz z;
creates an uninitialized multiple precision integer z.


Gmpz z ( int i);
creates a multiple-precision integer initialized with i.


Gmpz z ( double d);
creates a multiple-precision integer initialized with the integral part of d.

Operations

std::ostream& std::ostream& out << z writes z to the ostream out.

std::istream& std::istream& in >> & z reads an integer from in, then converts it to a Gmpz.

Implementation

Gmpzs are reference counted.