aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2017-03-02 09:11:11 -0800
committerPaul Eggert2017-03-02 09:12:49 -0800
commit4e2622bf0d63c40f447d44e6401ea054ef55b261 (patch)
tree10f66df3cd59695ffe15546aaa961987a3fe2ba1 /etc
parentd546be31a9320d94769cb322f008f49d08d852a8 (diff)
downloademacs-4e2622bf0d63c40f447d44e6401ea054ef55b261.tar.gz
emacs-4e2622bf0d63c40f447d44e6401ea054ef55b261.zip
Fix rounding errors in <, =, etc.
* etc/NEWS: Document this. * src/bytecode.c (exec_byte_code): * src/data.c (arithcompare): Do not lose information when comparing floats to integers. * test/src/data-tests.el (data-tests-=, data-tests-<) (data-tests->, data-tests-<=, data-tests->=): Test this.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5b5baff44e1..17353936e7f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -902,6 +902,11 @@ interpreting consecutive runs of numerical characters as numbers, and
902compares their numerical values. According to this predicate, 902compares their numerical values. According to this predicate,
903"foo2.png" is smaller than "foo12.png". 903"foo2.png" is smaller than "foo12.png".
904 904
905---
906** Numeric comparisons no longer return incorrect answers due to
907internal rounding errors. For example, (< most-positive-fixnum (+ 1.0
908most-positive-fixnum)) now correctly returns t on 64-bit hosts.
909
905+++ 910+++
906** The new function 'char-from-name' converts a Unicode name string 911** The new function 'char-from-name' converts a Unicode name string
907to the corresponding character code. 912to the corresponding character code.