diff options
| author | Richard M. Stallman | 1995-01-27 01:43:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-01-27 01:43:02 +0000 |
| commit | 0fddfa7210f92c4c6bc3ff25ef44a894a54b29d2 (patch) | |
| tree | c8e8af01c2ad3a8bc5581e1951bd48eb754e9c7f /lispref | |
| parent | 94b00316b8909d64003a181b76c98c6210c139ad (diff) | |
| download | emacs-0fddfa7210f92c4c6bc3ff25ef44a894a54b29d2.tar.gz emacs-0fddfa7210f92c4c6bc3ff25ef44a894a54b29d2.zip | |
Integer width changes.
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/objects.texi | 24 |
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 |
| 154 | of values for integers is @minus{}8388608 to 8388607 (24 bits; i.e., | 154 | 134217727 (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 |
| 161 | to | 161 | to |
| 162 | @ifinfo | 162 | @ifinfo |
| 163 | 2**23 - 1) | 163 | 2**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 |
| 168 | on most machines, but is 25 or 26 bits on some systems. It is important | 168 | on most machines. (Some machines may provide a wider range.) It is |
| 169 | to note that the Emacs Lisp arithmetic functions do not check for | 169 | important to note that the Emacs Lisp arithmetic functions do not check |
| 170 | overflow. Thus @code{(1+ 8388607)} is @minus{}8388608 on 24-bit | 170 | for overflow. Thus @code{(1+ 134217727)} is @minus{}134217728 on most |
| 171 | implementations.@refill | 171 | machines. |
| 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 |
| 174 | optional sign at the beginning and an optional period at the end. The | 174 | optional sign at the beginning and an optional period at the end. The |
| @@ -181,8 +181,8 @@ leading @samp{+} or a final @samp{.}. | |||
| 181 | 1 ; @r{The integer 1.} | 181 | 1 ; @r{The integer 1.} |
| 182 | 1. ; @r{Also The integer 1.} | 182 | 1. ; @r{Also The integer 1.} |
| 183 | +1 ; @r{Also the integer 1.} | 183 | +1 ; @r{Also the integer 1.} |
| 184 | 16777217 ; @r{Also the integer 1!} | 184 | 268435457 ; @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 | ||