[issue24662] While condition not satisfied embarrassingly

2015-07-18 Thread Ezio Melotti
Ezio Melotti added the comment: This is expected: >>> .1+.1+.1+.1+.1+.1+.1+.1+.1+.1 0. See https://docs.python.org/3/tutorial/floatingpoint.html for further info. -- nosy: +ezio.melotti resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue24662] While condition not satisfied embarrassingly

2015-07-18 Thread Agniva Roychowdhury
Changes by Agniva Roychowdhury : -- versions: +Python 2.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue24662] While condition not satisfied embarrassingly

2015-07-18 Thread Agniva Roychowdhury
New submission from Agniva Roychowdhury: A simple while loop that prints a variable 'test' (initialized by 0.0 and incremented by 0.1 in the loop) with a condition test<1.0 prints values UPTO 1.0. It is a serious error. Please check attached file and the output. -- components: Interpre