Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] can gmp types overflow?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] can gmp types overflow?


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] can gmp types overflow?
  • Date: Wed, 17 Oct 2007 10:31:06 +0200
  • Organization: INRIA


a écrit :
Can either CGAL::gmpz or CGAL::gmpq overflow, or can they represent as larage
as needed numbers?

I'm not sure what you mean by "as large as needed", but AFAIK, there is
no limit apart from the computer memory. You should refer to the GMP
documentation for this, by the way, since those CGAL types are only
wrappers around GMP.

> and is there an overflow when transferring to double? (assuming the double value is not over MAX_DOUBLE)

Again, the CGAL::to_double() function for these types call GMP
functions (mpz_get_d and mpq_get_d), so it is up to GMP.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.16.

Top of Page