Commit 8a08ce25 authored by Benjamin Peterson's avatar Benjamin Peterson

trunc does use the special method, though

parent 52a70c4a
...@@ -134,7 +134,7 @@ Number-theoretic and representation functions ...@@ -134,7 +134,7 @@ Number-theoretic and representation functions
.. function:: trunc(x) .. function:: trunc(x)
Return the :class:`Real` value *x* truncated to an :class:`Integral` (usually Return the :class:`Real` value *x* truncated to an :class:`Integral` (usually
a long integer). a long integer). Uses the ``__trunc__`` method.
.. versionadded:: 2.6 .. versionadded:: 2.6
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment