Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3e8bdc

Browse files
Fix typo and edit for clarity in the docstrings of sys.float_info. (pythonGH-2251)
(cherry picked from commit 0301c9b) Co-authored-by: Stefano Taschini <[email protected]>
1 parent edd5418 commit e3e8bdc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Objects/floatobject.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/* Float object implementation */
32

43
/* XXX There should be overflow checks here, but it's hard to check
@@ -80,7 +79,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
8079
"is representable"},
8180
{"max_10_exp", "DBL_MAX_10_EXP -- maximum int e such that 10**e "
8281
"is representable"},
83-
{"min", "DBL_MIN -- Minimum positive normalizer float"},
82+
{"min", "DBL_MIN -- Minimum positive normalized float"},
8483
{"min_exp", "DBL_MIN_EXP -- minimum int e such that radix**(e-1) "
8584
"is a normalized float"},
8685
{"min_10_exp", "DBL_MIN_10_EXP -- minimum int e such that 10**e is "
@@ -90,7 +89,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
9089
{"epsilon", "DBL_EPSILON -- Difference between 1 and the next "
9190
"representable float"},
9291
{"radix", "FLT_RADIX -- radix of exponent"},
93-
{"rounds", "FLT_ROUNDS -- addition rounds"},
92+
{"rounds", "FLT_ROUNDS -- rounding mode"},
9493
{0}
9594
};
9695

0 commit comments

Comments
 (0)