This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sam-s
Recipients sam-s
Date 2017-05-30.17:26:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496165188.27.0.848186644048.issue30515@psf.upfronthosting.co.za>
In-reply-to
Content
I get this `unittest` failure:

```
Traceback (most recent call last):
  File "zzz.py", line 348, in test_opposite
    self.assertAlmostEqual(a, b, places=2)
AssertionError: 1.1036640046288428 != 1.0986122886681098 within 2 places
```

This seems incorrect: 1.1036640046288428 rounded off to 2 places is 1.10 and so is 1.0986122886681098.

E.g., in Lisp:

```
> (round 1.1036640046288428d0 0.01)
110 ;
0.0036640292157588336d0
> (round 1.0986122886681098d0 0.01)
110 ;
-0.001387686744974238d0
```
History
Date User Action Args
2017-05-30 17:26:28sam-ssetrecipients: + sam-s
2017-05-30 17:26:28sam-ssetmessageid: <1496165188.27.0.848186644048.issue30515@psf.upfronthosting.co.za>
2017-05-30 17:26:28sam-slinkissue30515 messages
2017-05-30 17:26:27sam-screate