summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-06 17:21:05 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-06 17:21:05 (GMT)
commit47f2333609f85c9f49c9be4e7bb7135efa4b5d90 (patch)
tree780d4fa6ae7e9eacf18b12bb389c20e9ce72a530
parent696f91151c6fe3d885fc658056c3fd19aceb4943 (diff)
downloadcpython-47f2333609f85c9f49c9be4e7bb7135efa4b5d90.zip
cpython-47f2333609f85c9f49c9be4e7bb7135efa4b5d90.tar.gz
cpython-47f2333609f85c9f49c9be4e7bb7135efa4b5d90.tar.bz2
Fix math containing %!!!
-rw-r--r--Doc/ref.tex4
-rw-r--r--Doc/ref/ref.tex4
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/ref.tex b/Doc/ref.tex
index a2eb381..c47b084 100644
--- a/Doc/ref.tex
+++ b/Doc/ref.tex
@@ -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}
diff --git a/Doc/ref/ref.tex b/Doc/ref/ref.tex
index a2eb381..c47b084 100644
--- a/Doc/ref/ref.tex
+++ b/Doc/ref/ref.tex
@@ -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}