diff options
| author | Paul Eggert | 2018-08-19 01:22:08 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-08-19 01:22:25 -0700 |
| commit | 47b7a5bd492e92dda928843e28a707b9682cb32f (patch) | |
| tree | 90c26ba233152114aa308fe19a51f38c52735223 /doc | |
| parent | 06b5bcd639bf97fc77dc89dd52f136d4f262e888 (diff) | |
| download | emacs-47b7a5bd492e92dda928843e28a707b9682cb32f.tar.gz emacs-47b7a5bd492e92dda928843e28a707b9682cb32f.zip | |
Add bignum support to expt
Problem and initial solution reported by Andy Moreton in:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00503.html
* doc/lispref/numbers.texi (Math Functions): expt integer
overflow no longer causes truncation; it now signals an error
since bignum overflow is a big deal.
* src/floatfns.c (Fexpt): Support bignum arguments.
* test/src/floatfns-tests.el (bignum-expt): New test.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/numbers.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi index 74a313e2e10..209e9f139a5 100644 --- a/doc/lispref/numbers.texi +++ b/doc/lispref/numbers.texi | |||
| @@ -1185,7 +1185,7 @@ returns a NaN. | |||
| 1185 | @defun expt x y | 1185 | @defun expt x y |
| 1186 | This function returns @var{x} raised to power @var{y}. If both | 1186 | This function returns @var{x} raised to power @var{y}. If both |
| 1187 | arguments are integers and @var{y} is nonnegative, the result is an | 1187 | arguments are integers and @var{y} is nonnegative, the result is an |
| 1188 | integer; in this case, overflow causes truncation, so watch out. | 1188 | integer; in this case, overflow signals an error, so watch out. |
| 1189 | If @var{x} is a finite negative number and @var{y} is a finite | 1189 | If @var{x} is a finite negative number and @var{y} is a finite |
| 1190 | non-integer, @code{expt} returns a NaN. | 1190 | non-integer, @code{expt} returns a NaN. |
| 1191 | @end defun | 1191 | @end defun |