bignum in emacs/elisp

2019-02-21 16:13发布

问题:

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

回答1:

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.