integer size

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


Ron Croonenberg <ron.croonenberg at gmail.com> 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.

-- 
Torbjörn


More information about the gmp-discuss mailing list