diff options
author | Georg Brandl <georg@python.org> | 2010-12-01 15:32:43 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-12-01 15:32:43 (GMT) |
commit | 063f23781282e044c860f873ecbec27318524992 (patch) | |
tree | c41cb94b667056bcbcba1cf118657a7062a7d5d0 /Doc/reference/expressions.rst | |
parent | 5ce0aa236f5417a5be6fba80c6aaa38ed456ef59 (diff) | |
download | cpython-063f23781282e044c860f873ecbec27318524992.zip cpython-063f23781282e044c860f873ecbec27318524992.tar.gz cpython-063f23781282e044c860f873ecbec27318524992.tar.bz2 |
Add missing word, and add a better reference to the actual function.
Diffstat (limited to 'Doc/reference/expressions.rst')
-rw-r--r-- | Doc/reference/expressions.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 31a9811..6ef4443 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -1322,8 +1322,8 @@ groups from right to left). true numerically due to roundoff. For example, and assuming a platform on which a Python float is an IEEE 754 double-precision number, in order that ``-1e-100 % 1e100`` have the same sign as ``1e100``, the computed result is ``-1e-100 + - 1e100``, which is numerically exactly equal to ``1e100``. Function :func:`fmod` - in the :mod:`math` module returns a result whose sign matches the sign of the + 1e100``, which is numerically exactly equal to ``1e100``. The function + :func:`math.fmod` returns a result whose sign matches the sign of the first argument instead, and so returns ``-1e-100`` in this case. Which approach is more appropriate depends on the application. @@ -1344,7 +1344,8 @@ groups from right to left). the :keyword:`is` operator, like those involving comparisons between instance methods, or constants. Check their documentation for more info. -.. [#] The ``%`` is also used for string formatting; the same precedence applies. +.. [#] The ``%`` operator is also used for string formatting; the same + precedence applies. .. [#] The power operator ``**`` binds less tightly than an arithmetic or bitwise unary operator on its right, that is, ``2**-1`` is ``0.5``. |