mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Tweak wording about Fraction and Decimal (GH-10904)
This commit is contained in:
parent
63d152232e
commit
7804e8c70c
1 changed files with 2 additions and 2 deletions
|
|
@ -220,8 +220,8 @@ numbers for the machine on which your program is running is available
|
||||||
in :data:`sys.float_info`. Complex numbers have a real and imaginary
|
in :data:`sys.float_info`. Complex numbers have a real and imaginary
|
||||||
part, which are each a floating point number. To extract these parts
|
part, which are each a floating point number. To extract these parts
|
||||||
from a complex number *z*, use ``z.real`` and ``z.imag``. (The standard
|
from a complex number *z*, use ``z.real`` and ``z.imag``. (The standard
|
||||||
library includes additional numeric types, :mod:`fractions` that hold
|
library includes the additional numeric types :mod:`fractions.Fraction`, for
|
||||||
rationals, and :mod:`decimal` that hold floating-point numbers with
|
rationals, and :mod:`decimal.Decimal`, for floating-point numbers with
|
||||||
user-definable precision.)
|
user-definable precision.)
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue