Skip to content
Snippets Groups Projects
Unverified Commit 8827b95e authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

doc: remove a misleading statement. (GH-98093)


(cherry picked from commit 571e23d9)

Co-authored-by: default avatarJulien Palard <julien@palard.fr>
parent 1ae7abf6
Branches
Tags
No related merge requests found
...@@ -70,8 +70,8 @@ the ones with a fractional part (e.g. ``5.0``, ``1.6``) have type ...@@ -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. :class:`float`. We will see more about numeric types later in the tutorial.
Division (``/``) always returns a float. To do :term:`floor division` and Division (``/``) always returns a float. To do :term:`floor division` and
get an integer result (discarding any fractional result) you can use the ``//`` get an integer result you can use the ``//`` operator; to calculate
operator; to calculate the remainder you can use ``%``:: the remainder you can use ``%``::
>>> 17 / 3 # classic division returns a float >>> 17 / 3 # classic division returns a float
5.666666666666667 5.666666666666667
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment