diff options
author | Georg Brandl <georg@python.org> | 2006-03-28 18:02:44 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-03-28 18:02:44 (GMT) |
commit | 275935db8ddbc66280c15dd36352e5ed87800b95 (patch) | |
tree | 58cc79f7e246777a2010668c15f32ac20f98a4b9 /Doc | |
parent | 7fd548f9c103352fcab2745750923cb4458b2521 (diff) | |
download | cpython-275935db8ddbc66280c15dd36352e5ed87800b95.zip cpython-275935db8ddbc66280c15dd36352e5ed87800b95.tar.gz cpython-275935db8ddbc66280c15dd36352e5ed87800b95.tar.bz2 |
document sys.maxint in std objects
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libstdtypes.tex | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 017b080..ec96ed5 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -185,10 +185,12 @@ There are four distinct numeric types: \dfn{plain integers}, In addition, Booleans are a subtype of plain integers. Plain integers (also just called \dfn{integers}) are implemented using \ctype{long} in C, which gives them at least 32 -bits of precision. Long integers have unlimited precision. 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. +bits of precision (\code{sys.maxint} is always set to the maximum +plain integer value for the current platform, the minimum value is +\code{-sys.maxint - 1}). Long integers have unlimited precision. +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{Boolean} \obindex{integer} |