aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman1995-01-27 01:43:02 +0000
committerRichard M. Stallman1995-01-27 01:43:02 +0000
commit0fddfa7210f92c4c6bc3ff25ef44a894a54b29d2 (patch)
treec8e8af01c2ad3a8bc5581e1951bd48eb754e9c7f /lispref
parent94b00316b8909d64003a181b76c98c6210c139ad (diff)
downloademacs-0fddfa7210f92c4c6bc3ff25ef44a894a54b29d2.tar.gz
emacs-0fddfa7210f92c4c6bc3ff25ef44a894a54b29d2.zip
Integer width changes.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/objects.texi24
1 files changed, 12 insertions, 12 deletions
diff --git a/lispref/objects.texi b/lispref/objects.texi
index 9f5a82ee393..5d9762ee268 100644
--- a/lispref/objects.texi
+++ b/lispref/objects.texi
@@ -150,25 +150,25 @@ latter are unique to Emacs Lisp.
150@node Integer Type 150@node Integer Type
151@subsection Integer Type 151@subsection Integer Type
152 152
153 Integers were the only kind of number in Emacs version 18. The range 153 The range of values for integers in Emacs Lisp is @minus{}134217728 to
154of values for integers is @minus{}8388608 to 8388607 (24 bits; i.e., 154134217727 (28 bits; i.e.,
155@ifinfo 155@ifinfo
156-2**23 156-2**27
157@end ifinfo 157@end ifinfo
158@tex 158@tex
159$-2^{23}$ 159$-2^{27}$
160@end tex 160@end tex
161to 161to
162@ifinfo 162@ifinfo
1632**23 - 1) 1632**27 - 1)
164@end ifinfo 164@end ifinfo
165@tex 165@tex
166$2^{23}-1$) 166$2^{28}-1$)
167@end tex 167@end tex
168on most machines, but is 25 or 26 bits on some systems. It is important 168on most machines. (Some machines may provide a wider range.) It is
169to note that the Emacs Lisp arithmetic functions do not check for 169important to note that the Emacs Lisp arithmetic functions do not check
170overflow. Thus @code{(1+ 8388607)} is @minus{}8388608 on 24-bit 170for overflow. Thus @code{(1+ 134217727)} is @minus{}134217728 on most
171implementations.@refill 171machines.
172 172
173 The read syntax for integers is a sequence of (base ten) digits with an 173 The read syntax for integers is a sequence of (base ten) digits with an
174optional sign at the beginning and an optional period at the end. The 174optional sign at the beginning and an optional period at the end. The
@@ -181,8 +181,8 @@ leading @samp{+} or a final @samp{.}.
1811 ; @r{The integer 1.} 1811 ; @r{The integer 1.}
1821. ; @r{Also The integer 1.} 1821. ; @r{Also The integer 1.}
183+1 ; @r{Also the integer 1.} 183+1 ; @r{Also the integer 1.}
18416777217 ; @r{Also the integer 1!} 184268435457 ; @r{Also the integer 1!}
185 ; @r{ (on a 24-bit or 25-bit implementation)} 185 ; @r{ (on a 28-bit implementation)}
186@end group 186@end group
187@end example 187@end example
188 188