summaryrefslogtreecommitdiffstats
path: root/Doc/library/decimal.rst
diff options
context:
space:
mode:
authorC.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>2022-10-17 23:49:38 (GMT)
committerGitHub <noreply@github.com>2022-10-17 23:49:38 (GMT)
commitea19c28512b4bd815834de064cf0ef9803cc03a2 (patch)
tree706715f97eb50e3b7ab6f4316dbc0c12eae373ea /Doc/library/decimal.rst
parent9cb30bb339fedf76cb7c3950114bb07c5d35efeb (diff)
downloadcpython-ea19c28512b4bd815834de064cf0ef9803cc03a2.zip
cpython-ea19c28512b4bd815834de064cf0ef9803cc03a2.tar.gz
cpython-ea19c28512b4bd815834de064cf0ef9803cc03a2.tar.bz2
[3.11] Docs: Fix backtick errors found by sphinx-lint (GH-97998) (#98371)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>. (cherry picked from commit fa2d43e5184f5eaf3391844ec2400342a1b2ead4) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to 'Doc/library/decimal.rst')
-rw-r--r--Doc/library/decimal.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index b7e8363..2601081 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -576,11 +576,11 @@ Decimal objects
Alternative constructor that only accepts instances of :class:`float` or
:class:`int`.
- Note `Decimal.from_float(0.1)` is not the same as `Decimal('0.1')`.
+ Note ``Decimal.from_float(0.1)`` is not the same as ``Decimal('0.1')``.
Since 0.1 is not exactly representable in binary floating point, the
value is stored as the nearest representable value which is
- `0x1.999999999999ap-4`. That equivalent value in decimal is
- `0.1000000000000000055511151231257827021181583404541015625`.
+ ``0x1.999999999999ap-4``. That equivalent value in decimal is
+ ``0.1000000000000000055511151231257827021181583404541015625``.
.. note:: From Python 3.2 onwards, a :class:`Decimal` instance
can also be constructed directly from a :class:`float`.
@@ -1209,7 +1209,7 @@ In addition to the three supplied contexts, new contexts can be created with the
.. method:: exp(x)
- Returns `e ** x`.
+ Returns ``e ** x``.
.. method:: fma(x, y, z)