Skip to content

Commit

Permalink
doc: remove a misleading statement. (pythonGH-98093)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPalard committed Oct 10, 2022
1 parent ad817cd commit 571e23d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ the ones with a fractional part (e.g. ``5.0``, ``1.6``) have type
:class:`float`. We will see more about numeric types later in the tutorial.

Division (``/``) always returns a float. To do :term:`floor division` and
get an integer result (discarding any fractional result) you can use the ``//``
operator; to calculate the remainder you can use ``%``::
get an integer result you can use the ``//`` operator; to calculate
the remainder you can use ``%``::

>>> 17 / 3 # classic division returns a float
5.666666666666667
Expand Down

0 comments on commit 571e23d

Please sign in to comment.