New submission from mike stern :
I noticed i big problem making a simple increment of .1 in python 3.7
using while
the result is wrong
i=0
while i < 1.2:
i += 0.1
print(i)
result
== RESTART: C:/Users/icosf/AppData/Local/Programs/Python/Python37-32/bb.py ==
0.1
0.2
0.30
mike stern added the comment:
problem actually more serious, it is here print(0.7+0.1) , which gives
.7999
same thing when adding the .1 increment to 4.8 , 5.1 etc ...
I am not sure of the pattern but it is acting up with some numbers
who will fix this , this is serious
I wouldn
mike stern added the comment:
so anybody can close a ticket ?
anybody can say their point of view and close a ticket, is that how it goes?
this is not serious
who is managing this ?
is this how we can trust a programming language?
it sounds like we are dealing with irresponsible kids here
Change by mike stern :
--
nosy: -serhiy.storchaka, terry.reedy
title: increment is wrong in 3.7 -> increment is wrong in 3.7 but not in 2.7
___
Python tracker
<https://bugs.python.org/issu
mike stern added the comment:
Christian Heimes why did you close it
--
status: closed -> open
___
Python tracker
<https://bugs.python.org/issue40981>
___
_
mike stern added the comment:
Christian Heimes you haven't tried it on 2.7 did you ?
--
status: closed -> open
___
Python tracker
<https://bugs.python.org
mike stern added the comment:
what is rude is to talk to me in an autoritative way like you do
you haven't even checked what I said , I said it working in Python 2.7 and it
is not in 3.7
and you want to just read me an article.
From: report=bugs.p
mike stern added the comment:
you can at least try it and see for yourself that what I am saying is actually
true
but never mind I will keep on opening tickets until someone tries it on 2.7 and
see what I am talking about
From: Redwane Freedom Is-to-Be-With
mike stern added the comment:
you can at least try it and see for yourself that what I am saying is actually
true
but never mind I will keep on opening tickets until someone tries it on 2.7 and
see what I am talking about
From: Redwane Freedom Is-to-Be-With
mike stern added the comment:
I appreciate taking the time to explain , I just wished the other guys did that
instead of just closing the ticket on my face.
I wished at least they suggested me to use round() without any aggravations
but thanks anyway
From
mike stern added the comment:
sorry but I don't see the option to delete
From: report=bugs.python@roundup.psfhosted.org
on behalf of Terry J. Reedy
Sent: Monday, June 15, 2020 11:46 AM
To: rskir...@hotmail.com
Subject: [issue40981] increment is
New submission from mike stern :
please I would like to know why python changes an integer result in a division
to a float even in the result is even
like print(2 / 2) gives 2.0 instead of 2
or
a = 2 / 2
print(a)
--
components: Interpreter Core
messages: 372033
nosy: rskir
mike stern added the comment:
Not satisfied with that reply
you can't just decide to close the ticket without even giving a reasonable
answer, or even try that on 2.7 or 3.7 to see if it is true what I said.
Besides, that is not a convincing answer, that is actually no answer at all!
mike stern added the comment:
I appreciate your answer
I just didn't like how she answered earlier saying
I cannot reproduce. 2 / 2 gives 1.0 to me.
which is not true
thanks anyway, now i am gonna have to do some reading
From: report=bugs.p
mike stern added the comment:
sorry but that article was about version 2.2 in 2000
Created:11-Mar-2001
Python-Version: 2.2
where is the one for 3.7
From: report=bugs.python@roundup.psfhosted.org
on behalf of Tim Peters
Sent: Monday, June 22
mike stern added the comment:
i am calm
but sometimes I am wondering if the philosophy behind python is really like
they claimed to make it very simple. Well I see a lot of confusions sometimes ,
and this is one
From: report=bugs.python
16 matches
Mail list logo