]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix math containing %!!!
authorGuido van Rossum <guido@python.org>
Fri, 6 Dec 1991 17:21:05 +0000 (17:21 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 6 Dec 1991 17:21:05 +0000 (17:21 +0000)
Doc/ref.tex
Doc/ref/ref.tex

index a2eb381952595fe2396d0126d04effabb66c8c39..c47b08475fbe8e5f180b5928b80cf935a75bfc0e 100644 (file)
@@ -503,10 +503,10 @@ Division by zero raises a {\tt RuntimeError} exception.
 The \verb|'%'| operator yields the remainder from the division
 of the first argument by the second.
 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.
 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}
 
index a2eb381952595fe2396d0126d04effabb66c8c39..c47b08475fbe8e5f180b5928b80cf935a75bfc0e 100644 (file)
@@ -503,10 +503,10 @@ Division by zero raises a {\tt RuntimeError} exception.
 The \verb|'%'| operator yields the remainder from the division
 of the first argument by the second.
 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.
 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}