is there a symbolic infinity

Torbjorn Granlund tege at swox.com
Fri Oct 28 13:01:38 CEST 2005


Andreas Fabri <Andreas.Fabri at sophia.inria.fr> writes:

  is there a means to express the biggest and the smallest
  number of each GMP number type in a symbolic way?

No, tghere is no notion of infinity in GMP.

As a matter of fact, there is no overflow detection.  In practice,
one should normally get a memory allocation error, not numerical
overflow in such situations.

But it is not safe to approach the limit of 2^32-1 bits on a 32-bit
machine.  One might get garbage results.

--
Torbjörn


More information about the gmp-discuss mailing list