Skip to content

Commit fdc5a94

Browse files
authored
bpo-37973: Improve the docstrings of sys.float_info (GH-19218)
Taken from https://docs.python.org/3/library/sys.html#sys.float_info
1 parent 3f5f614 commit fdc5a94

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Objects/floatobject.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ static PyStructSequence_Field floatinfo_fields[] = {
5959
"is a normalized float"},
6060
{"min_10_exp", "DBL_MIN_10_EXP -- minimum int e such that 10**e is "
6161
"a normalized"},
62-
{"dig", "DBL_DIG -- digits"},
62+
{"dig", "DBL_DIG -- maximum number of decimal digits that "
63+
"can be faithfully represented in a float"},
6364
{"mant_dig", "DBL_MANT_DIG -- mantissa digits"},
6465
{"epsilon", "DBL_EPSILON -- Difference between 1 and the next "
6566
"representable float"},
6667
{"radix", "FLT_RADIX -- radix of exponent"},
67-
{"rounds", "FLT_ROUNDS -- rounding mode"},
68+
{"rounds", "FLT_ROUNDS -- rounding mode used for arithmetic "
69+
"operations"},
6870
{0}
6971
};
7072

0 commit comments

Comments
 (0)