mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Fix math containing %!!!
This commit is contained in:
parent
696f91151c
commit
47f2333609
2 changed files with 4 additions and 4 deletions
|
|
@ -503,10 +503,10 @@ Division by zero raises a {\tt RuntimeError} exception.
|
||||||
The \verb|'%'| operator yields the remainder from the division
|
The \verb|'%'| operator yields the remainder from the division
|
||||||
of the first argument by the second.
|
of the first argument by the second.
|
||||||
The numeric arguments are first converted to a common type.
|
The numeric arguments are first converted to a common type.
|
||||||
The outcome of $x % y$ is defined as $x - y*trunc(x/y)$.
|
The outcome of $x \% y$ is defined as $x - y*trunc(x/y)$.
|
||||||
A zero right argument raises a {\tt RuntimeError} exception.
|
A zero right argument raises a {\tt RuntimeError} exception.
|
||||||
The arguments may be floating point numbers, e.g.,
|
The arguments may be floating point numbers, e.g.,
|
||||||
$3.14 % 0.7$ equals $0.34$.
|
$3.14 \% 0.7$ equals $0.34$.
|
||||||
|
|
||||||
\section{Arithmetic expressions}
|
\section{Arithmetic expressions}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -503,10 +503,10 @@ Division by zero raises a {\tt RuntimeError} exception.
|
||||||
The \verb|'%'| operator yields the remainder from the division
|
The \verb|'%'| operator yields the remainder from the division
|
||||||
of the first argument by the second.
|
of the first argument by the second.
|
||||||
The numeric arguments are first converted to a common type.
|
The numeric arguments are first converted to a common type.
|
||||||
The outcome of $x % y$ is defined as $x - y*trunc(x/y)$.
|
The outcome of $x \% y$ is defined as $x - y*trunc(x/y)$.
|
||||||
A zero right argument raises a {\tt RuntimeError} exception.
|
A zero right argument raises a {\tt RuntimeError} exception.
|
||||||
The arguments may be floating point numbers, e.g.,
|
The arguments may be floating point numbers, e.g.,
|
||||||
$3.14 % 0.7$ equals $0.34$.
|
$3.14 \% 0.7$ equals $0.34$.
|
||||||
|
|
||||||
\section{Arithmetic expressions}
|
\section{Arithmetic expressions}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue