Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 37211:2c1fe761f019 2.4
Backport of rev 43312:
SF bug # 1457358 and patch # 1458419, floor division not documented. Patch by Andy.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 25 Mar 2006 21:27:08 +0000 |
| parents | dc6dec156869 |
| children |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Fri Mar 24 05:41:48 2006 +0000 +++ b/Doc/lib/libstdtypes.tex Sat Mar 25 21:27:08 2006 +0000 @@ -249,6 +249,7 @@ \hline \lineiii{\var{x} * \var{y}}{product of \var{x} and \var{y}}{} \lineiii{\var{x} / \var{y}}{quotient of \var{x} and \var{y}}{(1)} + \lineiii{\var{x} // \var{y}}{(floored) quotient of \var{x} and \var{y}}{(5)} \lineiii{\var{x} \%{} \var{y}}{remainder of \code{\var{x} / \var{y}}}{(4)} \hline \lineiii{-\var{x}}{\var{x} negated}{} @@ -299,6 +300,9 @@ \deprecated{2.3}{Instead convert to float using \function{abs()} if appropriate.} +\item[(5)] +Also referred to as integer division. The resultant value is a whole integer, +though the result's type is not necessarily int. \end{description} % XXXJH exceptions: overflow (when? what operations?) zerodivision
