aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-05-03 00:41:32 -0700
committerPaul Eggert2011-05-03 00:41:32 -0700
commitfed14fd75201f3c313293432e58de8f860979a3e (patch)
treedd162b85208a0d29f91e9fbd38bab5fc06caf45e
parentdb6c0e74f1e0483060623ed68c49107685902e65 (diff)
downloademacs-fed14fd75201f3c313293432e58de8f860979a3e.tar.gz
emacs-fed14fd75201f3c313293432e58de8f860979a3e.zip
* numbers.texi (Integer Basics): Large integers are treated as floats.
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/numbers.texi7
2 files changed, 8 insertions, 3 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 4aa63c6abaa..163de31f220 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12011-05-03 Paul Eggert <eggert@cs.ucla.edu>
2
3 * numbers.texi (Integer Basics): Large integers are treated as floats.
4
12011-04-30 Lars Magne Ingebrigtsen <larsi@gnus.org> 52011-04-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 6
3 * processes.texi (Synchronous Processes): Document the (:file 7 * processes.texi (Synchronous Processes): Document the (:file
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi
index 23150c2c937..2c73a03a26c 100644
--- a/doc/lispref/numbers.texi
+++ b/doc/lispref/numbers.texi
@@ -55,14 +55,15 @@ chapter assume an integer has 30 bits.
55@cindex overflow 55@cindex overflow
56 56
57 The Lisp reader reads an integer as a sequence of digits with optional 57 The Lisp reader reads an integer as a sequence of digits with optional
58initial sign and optional final period. 58initial sign and optional final period. An integer that is out of the
59Emacs range is treated as a floating-point number.
59 60
60@example 61@example
61 1 ; @r{The integer 1.} 62 1 ; @r{The integer 1.}
62 1. ; @r{The integer 1.} 63 1. ; @r{The integer 1.}
63+1 ; @r{Also the integer 1.} 64+1 ; @r{Also the integer 1.}
64-1 ; @r{The integer @minus{}1.} 65-1 ; @r{The integer @minus{}1.}
65 1073741825 ; @r{Also the integer 1, due to overflow.} 66 1073741825 ; @r{The floating point number 1073741825.0.}
66 0 ; @r{The integer 0.} 67 0 ; @r{The integer 0.}
67-0 ; @r{The integer 0.} 68-0 ; @r{The integer 0.}
68@end example 69@end example
@@ -195,7 +196,7 @@ point values:
195@samp{1.0e+INF} 196@samp{1.0e+INF}
196@item negative infinity 197@item negative infinity
197@samp{-1.0e+INF} 198@samp{-1.0e+INF}
198@item Not-a-number 199@item Not-a-number
199@samp{0.0e+NaN} or @samp{-0.0e+NaN}. 200@samp{0.0e+NaN} or @samp{-0.0e+NaN}.
200@end table 201@end table
201 202