Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7804e8c

Browse files
andresdelfinorhettinger
authored andcommitted
Tweak wording about Fraction and Decimal (GH-10904)
1 parent 63d1522 commit 7804e8c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ numbers for the machine on which your program is running is available
220220
in :data:`sys.float_info`. Complex numbers have a real and imaginary
221221
part, which are each a floating point number. To extract these parts
222222
from a complex number *z*, use ``z.real`` and ``z.imag``. (The standard
223-
library includes additional numeric types, :mod:`fractions` that hold
224-
rationals, and :mod:`decimal` that hold floating-point numbers with
223+
library includes the additional numeric types :mod:`fractions.Fraction`, for
224+
rationals, and :mod:`decimal.Decimal`, for floating-point numbers with
225225
user-definable precision.)
226226

227227
.. index::

0 commit comments

Comments
 (0)