mirror of
https://github.com/python/cpython.git
synced 2025-10-01 21:02:15 +00:00
Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)
(cherry picked from commit 0301c9bdd1
)
Co-authored-by: Stefano Taschini <taschini@users.noreply.github.com>
This commit is contained in:
parent
a7b1b847f6
commit
a6c3299605
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/* Float object implementation */
|
/* Float object implementation */
|
||||||
|
|
||||||
/* XXX There should be overflow checks here, but it's hard to check
|
/* XXX There should be overflow checks here, but it's hard to check
|
||||||
|
@ -54,7 +53,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
|
||||||
"is representable"},
|
"is representable"},
|
||||||
{"max_10_exp", "DBL_MAX_10_EXP -- maximum int e such that 10**e "
|
{"max_10_exp", "DBL_MAX_10_EXP -- maximum int e such that 10**e "
|
||||||
"is representable"},
|
"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) "
|
{"min_exp", "DBL_MIN_EXP -- minimum int e such that radix**(e-1) "
|
||||||
"is a normalized float"},
|
"is a normalized float"},
|
||||||
{"min_10_exp", "DBL_MIN_10_EXP -- minimum int e such that 10**e is "
|
{"min_10_exp", "DBL_MIN_10_EXP -- minimum int e such that 10**e is "
|
||||||
|
@ -64,7 +63,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
|
||||||
{"epsilon", "DBL_EPSILON -- Difference between 1 and the next "
|
{"epsilon", "DBL_EPSILON -- Difference between 1 and the next "
|
||||||
"representable float"},
|
"representable float"},
|
||||||
{"radix", "FLT_RADIX -- radix of exponent"},
|
{"radix", "FLT_RADIX -- radix of exponent"},
|
||||||
{"rounds", "FLT_ROUNDS -- addition rounds"},
|
{"rounds", "FLT_ROUNDS -- rounding mode"},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue