From: Paul Eggert Date: Fri, 14 Jul 2023 06:36:33 +0000 (-0700) Subject: Improve doc for VAX reading NaN, INF X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=be501f468ed36cddf01305b88bab44366b447c03;p=emacs.git Improve doc for VAX reading NaN, INF * doc/lispref/numbers.texi (Float Basics): Improve description of how Lisp reads infinities and NaNs on a VAX. --- diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi index bcf89fc9ab1..a49afb73539 100644 --- a/doc/lispref/numbers.texi +++ b/doc/lispref/numbers.texi @@ -280,9 +280,9 @@ conversely, @code{(equal 0.0 -0.0)} returns @code{nil} whereas @code{(= 0.0 -0.0)} returns @code{t}. Infinities and NaNs are not available on legacy systems that lack -IEEE floating-point arithmetic. On a circa 1980 VAX, for example, the -Lisp reader approximates an infinity with the nearest finite value, -and a NaN with some other non-numeric Lisp object that provokes an +IEEE floating-point arithmetic. On a circa 1980 VAX, for example, +Lisp reads @samp{1.0e+INF} as a large but finite floating-point number, +and @samp{0.0e+NaN} as some other non-numeric Lisp object that provokes an error if used numerically. Here are read syntaxes for these special floating-point values: