mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #6354: More fixes for code examples involving the repr of a float.
This commit is contained in:
parent
6e6565b64b
commit
5a55b61a2a
6 changed files with 13 additions and 13 deletions
|
@ -56,7 +56,7 @@ operators ``+``, ``-``, ``*`` and ``/`` work just like in most other languages
|
|||
>>> (50-5*6)/4
|
||||
5.0
|
||||
>>> 8/5 # Fractions aren't lost when dividing integers
|
||||
1.6000000000000001
|
||||
1.6
|
||||
|
||||
Note: You might not see exactly the same result; floating point results can
|
||||
differ from one machine to another. We will say more later about controlling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue