Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fed14fd7
Commit
fed14fd7
authored
May 03, 2011
by
Paul Eggert
Browse files
* numbers.texi (Integer Basics): Large integers are treated as floats.
parent
db6c0e74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+4
-0
doc/lispref/numbers.texi
doc/lispref/numbers.texi
+4
-3
No files found.
doc/lispref/ChangeLog
View file @
fed14fd7
2011-05-03 Paul Eggert <eggert@cs.ucla.edu>
* numbers.texi (Integer Basics): Large integers are treated as floats.
2011-04-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
* processes.texi (Synchronous Processes): Document the (:file
...
...
doc/lispref/numbers.texi
View file @
fed14fd7
...
...
@@ -55,14 +55,15 @@ chapter assume an integer has 30 bits.
@cindex overflow
The Lisp reader reads an integer as a sequence of digits with optional
initial sign and optional final period.
initial sign and optional final period. An integer that is out of the
Emacs range is treated as a floating-point number.
@example
1 ; @r{The integer 1.}
1. ; @r{The integer 1.}
+1 ; @r{Also the integer 1.}
-1 ; @r{The integer @minus{}1.}
1073741825 ; @r{
Also the integer 1, due to overflow
.}
1073741825 ; @r{
The floating point number 1073741825.0
.}
0 ; @r{The integer 0.}
-0 ; @r{The integer 0.}
@end example
...
...
@@ -195,7 +196,7 @@ point values:
@samp{1.0e+INF}
@item negative infinity
@samp{-1.0e+INF}
@item Not-a-number
@item Not-a-number
@samp{0.0e+NaN} or @samp{-0.0e+NaN}.
@end table
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment