integer size

Torbjorn Granlund tg at
Fri Sep 17 11:18:31 CEST 2010

Ron Croonenberg <ron.croonenberg at> writes:

  is there a way to find out how much space an integer uses?  of course
  in c one can do something like sizeof(int)  but when I use something
  like that with a gmp int I always end up getting 16. (even thought the
  integer is quite large.

Please see the fine manual, chapter Integer Functions, section
Miscellaneous Functions.


More information about the gmp-discuss mailing list