[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Mon, Jun 15, 2020 at 07:37:16PM +, mike stern wrote: > sorry but I don't see the option to delete Your keyboard has a Delete key and a Backspace key. Select the quoted text in your email client and press one or the other. If you can't see the quoted

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-15 Thread mike stern
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

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mike, when you respond by email, delete the text you are responding to. Your email is posted below the already posted text and the quote is useless noise that makes it harder to see what you wrote. Newcomers to Python who think they have seen a bug should b

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-15 Thread mike stern
: report=bugs.python@roundup.psfhosted.org on behalf of Steven D'Aprano Sent: Monday, June 15, 2020 2:51 AM To: rskir...@hotmail.com Subject: [issue40981] increment is wrong in 3.7 but not in 2.7 Steven D'Aprano added the comment: > I wouldn't trust a language behaving

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: > I wouldn't trust a language behaving crazy like this I guess then you won't trust C, Java, C++, Swift, Javascript, Ruby, Cobol, Fortran, and pretty much every programming language in existence. The only ones that escape this are ones that don't have float

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-14 Thread mike stern
-God Sent: Monday, June 15, 2020 2:45 AM To: Python tracker Subject: Re: [issue40981] increment is wrong in 3.7 but not in 2.7 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

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-14 Thread mike stern
-God Sent: Monday, June 15, 2020 2:45 AM To: Python tracker Subject: Re: [issue40981] increment is wrong in 3.7 but not in 2.7 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

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-14 Thread mike stern
ython@roundup.psfhosted.org on behalf of Christian Heimes Sent: Monday, June 15, 2020 2:40 AM To: rskir...@hotmail.com Subject: [issue40981] increment is wrong in 3.7 but not in 2.7 Christian Heimes added the comment: Python's float are IEE 754 floats for over 25 years and since Python

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-14 Thread Christian Heimes
Christian Heimes added the comment: Python's float are IEE 754 floats for over 25 years and since Python 1.x, maybe earlier. IIRC standard is from 1985. It's how CPUs have dealt with floats for over 35 years. By the way it's is incredible rude to keep re-opening a bug and responding on a cl

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-14 Thread mike stern
mike stern added the comment: Christian Heimes you haven't tried it on 2.7 did you ? -- status: closed -> open ___ Python tracker ___ _

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-14 Thread Christian Heimes
Christian Heimes added the comment: Multiple people already told you that it is not a bug. It's how floating point standard IEEE 754 works. -- nosy: +christian.heimes status: open -> closed ___ Python tracker _

[issue40981] increment is wrong in 3.7

2020-06-14 Thread mike stern
mike stern added the comment: Christian Heimes why did you close it -- status: closed -> open ___ Python tracker ___ ___ Python-bug

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-14 Thread mike stern
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 ___

[issue40981] increment is wrong in 3.7

2020-06-14 Thread Christian Heimes
Change by Christian Heimes : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue40981] increment is wrong in 3.7

2020-06-14 Thread mike stern
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 ple

[issue40981] increment is wrong in 3.7

2020-06-14 Thread SilentGhost
SilentGhost added the comment: This isn't a problem, this is how floating number implemented in Python and many other languages. Please read the linked detailed explanation and do not re-open the ticket. -- nosy: +SilentGhost status: open -> closed __

[issue40981] increment is wrong in 3.7

2020-06-14 Thread mike stern
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't tr

[issue40981] increment is wrong in 3.7

2020-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: https://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate This is not Python 3.7 specific issue, and is not even Python issue. It is how floating-point numbers work. -- nosy: +serhiy.storchaka resolution: -> not a

[issue40981] increment is wrong in 3.7

2020-06-14 Thread mike stern
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.30004