From be501f468ed36cddf01305b88bab44366b447c03 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 13 Jul 2023 23:36:33 -0700 Subject: [PATCH] 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. --- doc/lispref/numbers.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.39.2