26 May
2009
26 May
'09
11 p.m.
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