summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2010-03-06 15:27:19 -0500
committerChong Yidong <cyd@stupidchicken.com>2010-03-06 15:27:19 -0500
commit41923e1a487f935e504f16323b4cffa152756950 (patch)
tree1ab2ef288bf6ff2109eecb370b85886c219cfc7a
parentcb3acf2e618bb45bc89878b1f39550cf5c842819 (diff)
downloademacs-41923e1a487f935e504f16323b4cffa152756950.tar.gz
* objects.texi (Integer Type): Take note of the read syntax exception for numbers that cannot fit in the integer type.
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/objects.texi7
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 755e83b65ef..1b9e028e598 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-06 Chong Yidong <cyd@stupidchicken.com>
+
+ * objects.texi (Integer Type): Take note of the read syntax
+ exception for numbers that cannot fit in the integer type.
+
2010-03-03 Glenn Morris <rgm@gnu.org>
* numbers.texi (Integer Basics, Bitwise Operations):
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index 26c17f09f0e..5c3ac13cdaf 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -200,6 +200,13 @@ leading @samp{+} or a final @samp{.}.
@end group
@end example
+@noindent
+As a special exception, if a sequence of digits specifies an integer
+too large or too small to be a valid integer object, the Lisp reader
+reads it as a floating-point number (@pxref{Floating Point Type}).
+For instance, on most machines @code{536870912} is read as the
+floating-point number @code{536870912.0}.
+
@xref{Numbers}, for more information.
@node Floating Point Type