/[emacs]/emacs/lispref/objects.texi
ViewVC logotype

Diff of /emacs/lispref/objects.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37 by miles, Mon Sep 1 15:45:41 2003 UTC revision 1.38 by teirllm, Wed Oct 22 02:46:08 2003 UTC
# Line 161  latter are unique to Emacs Lisp. Line 161  latter are unique to Emacs Lisp.
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
# Line 192  leading @samp{+} or a final @samp{.}. Line 192  leading @samp{+} or a final @samp{.}.
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    
# Line 365  modifier key.  The integer that represen Line 365  modifier key.  The integer that represen
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

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26