aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2017-03-06 15:14:32 -0800
committerPaul Eggert2017-03-06 17:26:55 -0800
commit37940b347052418f0589bd52b06e56fffb594ea2 (patch)
tree40d63a87959ed1afa9b0dad7a2cabb5cdbe88121 /etc
parent3bd2e9e975ed29daaf03ca7559e4664aade0674f (diff)
downloademacs-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/NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 8f7356f3e03..ce20dfb15d7 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -803,6 +803,13 @@ Unicode horizontal whitespace as defined in the Unicode Technical
803Standard #18. If you only want to match space and tab, use [ \t] 803Standard #18. If you only want to match space and tab, use [ \t]
804instead. 804instead.
805 805
806+++
807** 'min' and 'max' now always return one of their arguments.
808Formerly, they returned a floating-point value if any argument was
809floating-point, which was sometimes numerically incorrect. For
810example, (min most-positive-fixnum (+ 1.0 most-positive-fixnum)) now
811always 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