]> git.eshelyaron.com Git - emacs.git/commitdiff
Mention floating rounding issues
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Jul 2020 15:40:17 +0000 (08:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Jul 2020 15:40:58 +0000 (08:40 -0700)
* doc/lispref/numbers.texi (Float Basics): Mention floating-point
rounding issues uncovered by the discussion in Bug#42417.

doc/lispref/numbers.texi

index 4002b36ce50a0792a3d4bb0624c470db06c5e987..f018ef4c7c09270391c1685cc0d737232559cbb9 100644 (file)
@@ -227,6 +227,9 @@ you are using.  On all computers supported by Emacs, this is
 and is discussed further in David Goldberg's paper
 ``@url{https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html,
 What Every Computer Scientist Should Know About Floating-Point Arithmetic}''.
+On modern platforms, floating-point operations follow the IEEE-754
+standard closely; however, results are not always rounded correctly on
+some obsolescent platforms, notably 32-bit x86.
 
   The read syntax for floating-point numbers requires either a decimal
 point, an exponent, or both.  Optional signs (@samp{+} or @samp{-})