[3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012)

(cherry picked from commit 1a0c7b9ba4)
This commit is contained in:
Serhiy Storchaka 2024-07-19 12:13:08 +03:00 committed by GitHub
parent 225cbee8d8
commit a45d9051ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
100 changed files with 238 additions and 238 deletions

View file

@ -200,8 +200,8 @@ Functions for sequences
For a given seed, the :func:`choices` function with equal weighting
typically produces a different sequence than repeated calls to
:func:`choice`. The algorithm used by :func:`choices` uses floating
point arithmetic for internal consistency and speed. The algorithm used
:func:`choice`. The algorithm used by :func:`choices` uses floating-point
arithmetic for internal consistency and speed. The algorithm used
by :func:`choice` defaults to integer arithmetic with repeated selections
to avoid small biases from round-off error.
@ -298,12 +298,12 @@ be found in any statistics text.
.. function:: random()
Return the next random floating point number in the range ``0.0 <= X < 1.0``
Return the next random floating-point number in the range ``0.0 <= X < 1.0``
.. function:: uniform(a, b)
Return a random floating point number *N* such that ``a <= N <= b`` for
Return a random floating-point number *N* such that ``a <= N <= b`` for
``a <= b`` and ``b <= N <= a`` for ``b < a``.
The end-point value ``b`` may or may not be included in the range
@ -313,7 +313,7 @@ be found in any statistics text.
.. function:: triangular(low, high, mode)
Return a random floating point number *N* such that ``low <= N <= high`` and
Return a random floating-point number *N* such that ``low <= N <= high`` and
with the specified *mode* between those bounds. The *low* and *high* bounds
default to zero and one. The *mode* argument defaults to the midpoint
between the bounds, giving a symmetric distribution.
@ -741,7 +741,7 @@ The following options are accepted:
.. option:: -f <N>
--float <N>
Print a random floating point number between 1 and N inclusive,
Print a random floating-point number between 1 and N inclusive,
using :meth:`uniform`.
If no options are given, the output depends on the input: