@@ -361,19 +361,22 @@ Notes:
361361All :class: `numbers.Real ` types (:class: `int ` and :class: `float `) also include
362362the following operations:
363363
364- +--------------------+------------------------------------+--------+
365- | Operation | Result | Notes |
366- +====================+====================================+========+
367- | ``math.trunc(x) `` | *x * truncated to Integral | |
368- +--------------------+------------------------------------+--------+
369- | ``round(x[, n]) `` | *x * rounded to n digits, | |
370- | | rounding half to even. If n is | |
371- | | omitted, it defaults to 0. | |
372- +--------------------+------------------------------------+--------+
373- | ``math.floor(x) `` | the greatest integral float <= *x * | |
374- +--------------------+------------------------------------+--------+
375- | ``math.ceil(x) `` | the least integral float >= *x * | |
376- +--------------------+------------------------------------+--------+
364+ +--------------------+---------------------------------------------+
365+ | Operation | Result |
366+ +====================+=============================================+
367+ | :func: `math.trunc(\| *x* truncated to :class:`~numbers.Integral ` |
368+ | x) <math.trunc>` | |
369+ +--------------------+---------------------------------------------+
370+ | :func: `round(x[, | *x * rounded to *n * digits, |
371+ | n]) <round>` | rounding half to even. If *n * is |
372+ | | omitted, it defaults to 0. |
373+ +--------------------+---------------------------------------------+
374+ | :func: `math.floor(\| the greatest :class:`~numbers.Integral ` |
375+ | x) <math.floor>` | <= *x * |
376+ +--------------------+---------------------------------------------+
377+ | :func: `math.ceil(x)| the least :class:`~numbers.Integral ` >= *x * |
378+ | <math.ceil>` | |
379+ +--------------------+---------------------------------------------+
377380
378381For additional numeric operations see the :mod: `math ` and :mod: `cmath `
379382modules.
0 commit comments