diff options
| author | Paul Eggert | 2017-03-02 09:11:11 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-03-02 09:12:49 -0800 |
| commit | 4e2622bf0d63c40f447d44e6401ea054ef55b261 (patch) | |
| tree | 10f66df3cd59695ffe15546aaa961987a3fe2ba1 /etc | |
| parent | d546be31a9320d94769cb322f008f49d08d852a8 (diff) | |
| download | emacs-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/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -902,6 +902,11 @@ interpreting consecutive runs of numerical characters as numbers, and | |||
| 902 | compares their numerical values. According to this predicate, | 902 | compares 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 | ||
| 907 | internal rounding errors. For example, (< most-positive-fixnum (+ 1.0 | ||
| 908 | most-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 |
| 907 | to the corresponding character code. | 912 | to the corresponding character code. |