diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index a0f98fd..7375a4a 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -362,17 +362,17 @@ All :class:`numbers.Real` types (:class:`int` and :class:`float`) also include the following operations: +--------------------+------------------------------------+--------+ -| Operation | Result | Notes | +| Operation | Result | +====================+====================================+========+ -| ``math.trunc(x)`` | *x* truncated to Integral | | +| ``math.trunc(x)`` | *x* truncated to :class:`numbers.Integral` | +--------------------+------------------------------------+--------+ -| ``round(x[, n])`` | *x* rounded to n digits, | | -| | rounding half to even. If n is | | -| | omitted, it defaults to 0. | | +| ``round(x[, n])`` | *x* rounded to n digits, | +| | rounding half to even. If n is | +| | omitted, it defaults to 0. | +--------------------+------------------------------------+--------+ -| ``math.floor(x)`` | the greatest integral float <= *x* | | +| ``math.floor(x)`` | the greatest integral float <= *x* | +--------------------+------------------------------------+--------+ -| ``math.ceil(x)`` | the least integral float >= *x* | | +| ``math.ceil(x)`` | the least integral float >= *x* | +--------------------+------------------------------------+--------+ For additional numeric operations see the :mod:`math` and :mod:`cmath`