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
880a206c
Commit
880a206c
authored
Mar 25, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF bug # 1457358 and patch # 1458419, floor division not documented. Patch by Andy.
Will backport.
parent
a39583f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+4
-0
No files found.
Doc/lib/libstdtypes.tex
View file @
880a206c
...
...
@@ -249,6 +249,7 @@ comparison operations):
\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 @@ Complex floor division operator, modulo operator, and \function{divmod()}.
\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
...
...
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