summaryrefslogtreecommitdiff
path: root/Doc/library/fractions.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-03 21:17:04 +0000
committerGeorg Brandl <georg@python.org>2009-01-03 21:17:04 +0000
commit36ab1ef8ee1006596937198e8f149e09ae8a6139 (patch)
tree604584365c107dcb5880f06d43b58f7580c55010 /Doc/library/fractions.rst
parent45f53370e7724282f136db6e547cf48b79f9186b (diff)
downloadcpython-git-36ab1ef8ee1006596937198e8f149e09ae8a6139.tar.gz
Merged revisions 68219 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68219 | georg.brandl | 2009-01-03 21:47:01 +0100 (Sat, 03 Jan 2009) | 2 lines Fix uses of the default role. ........
Diffstat (limited to 'Doc/library/fractions.rst')
-rw-r--r--Doc/library/fractions.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/fractions.rst b/Doc/library/fractions.rst
index 0861e681d1..68a8ef6295 100644
--- a/Doc/library/fractions.rst
+++ b/Doc/library/fractions.rst
@@ -126,11 +126,11 @@ another rational number, or from a string.
.. function:: gcd(a, b)
- Return the greatest common divisor of the integers `a` and `b`. If
- either `a` or `b` is nonzero, then the absolute value of `gcd(a,
- b)` is the largest integer that divides both `a` and `b`. `gcd(a,b)`
- has the same sign as `b` if `b` is nonzero; otherwise it takes the sign
- of `a`. `gcd(0, 0)` returns `0`.
+ Return the greatest common divisor of the integers *a* and *b*. If either
+ *a* or *b* is nonzero, then the absolute value of ``gcd(a, b)`` is the
+ largest integer that divides both *a* and *b*. ``gcd(a,b)`` has the same
+ sign as *b* if *b* is nonzero; otherwise it takes the sign of *a*. ``gcd(0,
+ 0)`` returns ``0``.
.. seealso::