Minor clarification (GH-22708)

This commit is contained in:
Raymond Hettinger 2020-10-14 23:41:55 -07:00 committed by GitHub
parent 2d2af320d9
commit b67cbbda3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -545,9 +545,9 @@ Recipes
The default :func:`.random` returns multiples of 2⁻⁵³ in the range The default :func:`.random` returns multiples of 2⁻⁵³ in the range
*0.0 ≤ x < 1.0*. All such numbers are evenly spaced and are exactly *0.0 ≤ x < 1.0*. All such numbers are evenly spaced and are exactly
representable as Python floats. However, many floats in that interval representable as Python floats. However, many other representable
are not possible selections. For example, ``0.05954861408025609`` floats in that interval are not possible selections. For example,
isn't an integer multiple of 2⁻⁵³. ``0.05954861408025609`` isn't an integer multiple of 2⁻⁵³.
The following recipe takes a different approach. All floats in the The following recipe takes a different approach. All floats in the
interval are possible selections. The mantissa comes from a uniform interval are possible selections. The mantissa comes from a uniform