[issue34337] Fail to get a right answer for 1.2%0.2

2018-08-05 Thread Mark Dickinson
Mark Dickinson added the comment: This isn't a bug: in short, you're evaluating a discontinuous function very close to a discontinuity; the errors inherent in floating-point arithmetic put you the "wrong" side of the discontinuity. Or more simply, with binary floating-point, What You See Is

[issue34337] Fail to get a right answer for 1.2%0.2

2018-08-05 Thread Yiwei Guo
New submission from Yiwei Guo : the answer of 1.2%0.2 should be zero -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue34337] Fail to get a right answer for 1.2%0.2

2018-08-05 Thread Yiwei Guo
Change by Yiwei Guo : -- components: Tests nosy: qq100460045 priority: normal severity: normal status: open title: Fail to get a right answer for 1.2%0.2 type: compile error versions: Python 3.6 ___ Python tracker