Boost Users :
Subject: Re: [Boost-users] Integral type with no upper limit?
From: Michiel Helvensteijn (m.helvensteijn_at_[hidden])
Date: 2009-05-26 19:00:51
Scott McMurray wrote:
>> Is there an integral type in Boost that has no upper limit? The only
>> physical limit would be the amount of memory on the system. And of
>> course, the larger the number, the heavier the math is on such an object,
>> because more cycles are required.
> People keep proposing them; The latest I know of is mp_int, which can
> be found at ...
Perhaps Boost shouldn't reinvent the wheel? There's already an open-source
arbitrary precision arithmetic library: http://gmplib.org/
It includes big-int, big-rational and big-float types. It's originally in C,
but includes C++ class interfaces.
I use it and I'm quite happy with it. I believe it's included in most, if
not all, Linux distributions.
-- Michiel Helvensteijn
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net