161 |
@node Integer Type |
@node Integer Type |
162 |
@subsection Integer Type |
@subsection Integer Type |
163 |
|
|
164 |
The range of values for integers in Emacs Lisp is @minus{}134217728 to |
The range of values for integers in Emacs Lisp is @minus{}268435456 to |
165 |
134217727 (28 bits; i.e., |
268435455 (29 bits; i.e., |
166 |
@ifnottex |
@ifnottex |
167 |
-2**27 |
-2**28 |
168 |
@end ifnottex |
@end ifnottex |
169 |
@tex |
@tex |
170 |
@math{-2^{27}} |
@math{-2^{28}} |
171 |
@end tex |
@end tex |
172 |
to |
to |
173 |
@ifnottex |
@ifnottex |
174 |
2**27 - 1) |
2**28 - 1) |
175 |
@end ifnottex |
@end ifnottex |
176 |
@tex |
@tex |
177 |
@math{2^{28}-1}) |
@math{2^{28}-1}) |
178 |
@end tex |
@end tex |
179 |
on most machines. (Some machines may provide a wider range.) It is |
on most machines. (Some machines may provide a wider range.) It is |
180 |
important to note that the Emacs Lisp arithmetic functions do not check |
important to note that the Emacs Lisp arithmetic functions do not check |
181 |
for overflow. Thus @code{(1+ 134217727)} is @minus{}134217728 on most |
for overflow. Thus @code{(1+ 268435455)} is @minus{}268435456 on most |
182 |
machines. |
machines. |
183 |
|
|
184 |
The read syntax for integers is a sequence of (base ten) digits with an |
The read syntax for integers is a sequence of (base ten) digits with an |
192 |
1 ; @r{The integer 1.} |
1 ; @r{The integer 1.} |
193 |
1. ; @r{Also the integer 1.} |
1. ; @r{Also the integer 1.} |
194 |
+1 ; @r{Also the integer 1.} |
+1 ; @r{Also the integer 1.} |
195 |
268435457 ; @r{Also the integer 1 on a 28-bit implementation.} |
536870913 ; @r{Also the integer 1 on a 29-bit implementation.} |
196 |
@end group |
@end group |
197 |
@end example |
@end example |
198 |
|
|
365 |
@ifnottex |
@ifnottex |
366 |
2**27 |
2**27 |
367 |
@end ifnottex |
@end ifnottex |
368 |
bit set (which on most machines makes it a negative number). We |
bit set. We use high bits for this and other modifiers to make |
369 |
use high bits for this and other modifiers to make possible a wide range |
possible a wide range of basic character codes. |
|
of basic character codes. |
|
370 |
|
|
371 |
In a string, the |
In a string, the |
372 |
@tex |
@tex |