Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
275935db
Commit
275935db
authored
Mar 28, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
document sys.maxint in std objects
parent
7fd548f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+6
-4
No files found.
Doc/lib/libstdtypes.tex
View file @
275935db
...
@@ -185,10 +185,12 @@ There are four distinct numeric types: \dfn{plain integers},
...
@@ -185,10 +185,12 @@ There are four distinct numeric types: \dfn{plain integers},
In addition, Booleans are a subtype of plain integers.
In addition, Booleans are a subtype of plain integers.
Plain integers (also just called
\dfn
{
integers
}
)
Plain integers (also just called
\dfn
{
integers
}
)
are implemented using
\ctype
{
long
}
in C, which gives them at least 32
are implemented using
\ctype
{
long
}
in C, which gives them at least 32
bits of precision. Long integers have unlimited precision. Floating
bits of precision (
\code
{
sys.maxint
}
is always set to the maximum
point numbers are implemented using
\ctype
{
double
}
in C. All bets on
plain integer value for the current platform, the minimum value is
their precision are off unless you happen to know the machine you are
\code
{
-sys.maxint - 1
}
). Long integers have unlimited precision.
working with.
Floating point numbers are implemented using
\ctype
{
double
}
in C.
All bets on their precision are off unless you happen to know the
machine you are working with.
\obindex
{
numeric
}
\obindex
{
numeric
}
\obindex
{
Boolean
}
\obindex
{
Boolean
}
\obindex
{
integer
}
\obindex
{
integer
}
...
...
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