Arbitrary-precision integers (included): Difference between revisions

m
Add note regarding bignum limit
(Add GMP answer for Emacs 27.1)
m (Add note regarding bignum limit)
Line 717:
===GMP===
 
As of Emacs 27.1, bignums are supported via GMP. However, there is a configurable limit on the maximum bignum size. If the limit is exceeded, an overflow error is raised.
 
<lang lisp>(let* ((integer-width (* 65536 16)) ; raise bignum limit from 65536 bits to avoid overflow error
(answer (number-to-string (expt 5 (expt 4 (expt 3 2)))))
(length (length answer)))
Anonymous user