diff options
author | Zackery Spytz <zspytz@gmail.com> | 2020-05-24 10:03:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-24 10:03:52 (GMT) |
commit | fdc5a94279736a7715dd35c5354a3c27098d0897 (patch) | |
tree | 0cec945c452e80b689064b13fc2f10c74cd27b7e /Objects | |
parent | 3f5f61409ebf95fa606bcbb15dfaaadad6084dc6 (diff) | |
download | cpython-fdc5a94279736a7715dd35c5354a3c27098d0897.zip cpython-fdc5a94279736a7715dd35c5354a3c27098d0897.tar.gz cpython-fdc5a94279736a7715dd35c5354a3c27098d0897.tar.bz2 |
bpo-37973: Improve the docstrings of sys.float_info (GH-19218)
Taken from https://docs.python.org/3/library/sys.html#sys.float_info
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/floatobject.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 9f50140..cc0ae8c 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -59,12 +59,14 @@ static PyStructSequence_Field floatinfo_fields[] = { "is a normalized float"}, {"min_10_exp", "DBL_MIN_10_EXP -- minimum int e such that 10**e is " "a normalized"}, - {"dig", "DBL_DIG -- digits"}, + {"dig", "DBL_DIG -- maximum number of decimal digits that " + "can be faithfully represented in a float"}, {"mant_dig", "DBL_MANT_DIG -- mantissa digits"}, {"epsilon", "DBL_EPSILON -- Difference between 1 and the next " "representable float"}, {"radix", "FLT_RADIX -- radix of exponent"}, - {"rounds", "FLT_ROUNDS -- rounding mode"}, + {"rounds", "FLT_ROUNDS -- rounding mode used for arithmetic " + "operations"}, {0} }; |