Search code examples
elispbigintegerbignum

bignum in emacs/elisp


Does emacs have support for big numbers that don't fit in integers? If it does, how do I use them?


Solution

  • Emacs Lispers frustrated by Emacs’s lack of bignum handling: calc.el provides very good bignum capabilities.—EmacsWiki

    calc.el is part of the GNU Emacs distribution. See its source code for available functions. You can immediately start playing with it by typing M-x quick-calc. You may also want to check bigint.el package, that is a non-standard, lightweight implementation for handling bignums.