Skip to content

Commit

Permalink
Fix typo and edit for clarity in the docstrings of sys.float_info. (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
taschini authored and serhiy-storchaka committed Mar 26, 2018
1 parent 3ab44c0 commit 0301c9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Objects/floatobject.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* Float object implementation */

/* XXX There should be overflow checks here, but it's hard to check
Expand Down Expand Up @@ -54,7 +53,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
"is representable"},
{"max_10_exp", "DBL_MAX_10_EXP -- maximum int e such that 10**e "
"is representable"},
{"min", "DBL_MIN -- Minimum positive normalizer float"},
{"min", "DBL_MIN -- Minimum positive normalized float"},
{"min_exp", "DBL_MIN_EXP -- minimum int e such that radix**(e-1) "
"is a normalized float"},
{"min_10_exp", "DBL_MIN_10_EXP -- minimum int e such that 10**e is "
Expand All @@ -64,7 +63,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
{"epsilon", "DBL_EPSILON -- Difference between 1 and the next "
"representable float"},
{"radix", "FLT_RADIX -- radix of exponent"},
{"rounds", "FLT_ROUNDS -- addition rounds"},
{"rounds", "FLT_ROUNDS -- rounding mode"},
{0}
};

Expand Down

0 comments on commit 0301c9b

Please sign in to comment.