[New-bugs-announce] [issue41269] Wrong subtraction calculations
Ivan
report at bugs.python.org
Fri Jul 10 09:43:09 EDT 2020
New submission from Ivan <ivan.babic.zg at gmail.com>:
I've started to learn python and tried command:
print(-2.989 + 2)
it gives me result of -0.9889999999999999
same error can be observed with numbers from 4 and below like:
print(-2.989 + 4)
1.0110000000000001
print(-2.989 + 3)
0.01100000000000012
print(-2.989 + 1)
-1.9889999999999999
Numbers above 4 seam to work fine
----------
components: Windows
files: python error.jpg
messages: 373465
nosy: Svabo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Wrong subtraction calculations
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49313/python error.jpg
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41269>
_______________________________________
More information about the New-bugs-announce
mailing list