diff options
| author | Paul Eggert | 2017-03-06 15:14:32 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-03-06 17:26:55 -0800 |
| commit | 37940b347052418f0589bd52b06e56fffb594ea2 (patch) | |
| tree | 40d63a87959ed1afa9b0dad7a2cabb5cdbe88121 /etc | |
| parent | 3bd2e9e975ed29daaf03ca7559e4664aade0674f (diff) | |
| download | emacs-37940b347052418f0589bd52b06e56fffb594ea2.tar.gz emacs-37940b347052418f0589bd52b06e56fffb594ea2.zip | |
min and max now return one of their arguments
* doc/lispref/numbers.texi (Comparison of Numbers):
* etc/NEWS: Document this.
* src/data.c (Amax, Amin): Remove constants. All uses removed.
(minmax_driver): New function.
(Fmax, Fmin): Use it instead of arith_driver.
* test/src/data-tests.el (data-tests-max, data-tests-min): New tests.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -803,6 +803,13 @@ Unicode horizontal whitespace as defined in the Unicode Technical | |||
| 803 | Standard #18. If you only want to match space and tab, use [ \t] | 803 | Standard #18. If you only want to match space and tab, use [ \t] |
| 804 | instead. | 804 | instead. |
| 805 | 805 | ||
| 806 | +++ | ||
| 807 | ** 'min' and 'max' now always return one of their arguments. | ||
| 808 | Formerly, they returned a floating-point value if any argument was | ||
| 809 | floating-point, which was sometimes numerically incorrect. For | ||
| 810 | example, (min most-positive-fixnum (+ 1.0 most-positive-fixnum)) now | ||
| 811 | always returns its first argument instead of its second. | ||
| 812 | |||
| 806 | 813 | ||
| 807 | * Lisp Changes in Emacs 26.1 | 814 | * Lisp Changes in Emacs 26.1 |
| 808 | 815 | ||