You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Numeric Types documentation for 2.6, 3.0, and 3.1 trunc is
documented as a built-in, like round, but while there is a trunc in math
there is no built-in trunc. Read some of the debate on trunc from a year
ago convinced me that this discrepancy is a documentation problem not a
problem with the built-in functions. Sorry if I'm completely off target
here, but since I noticed I figured it was worth an issue.
Confirmed for 3.0 that trunc does not exist in the builtins module and
is not listed in the Built-in functions section but is listed in the
Numeric Types section. So I agree "trunc(x) x truncated to Integral "
should leave the Operation table.
Yes, MM, we do want to clean up such discrepancies.
trunc is in the math module and is listed in its doc.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: