I think it's a corner case in terms of how the result is given precision. 
It's off by 1 in this case. And being off by one doesn't affect the boolean:

```
>>> Float('.1',0)==.1
True
>>> Float('.1',1)==.1
True
```

On Tuesday, September 2, 2014 8:03:18 PM UTC-5, Aaron Meurer wrote:
>
> I think it's a bug with the printer. S(0.06).round(1) == 0.1 gives 
> True. Can you open an issue for it? 
>
> Aaron Meurer 
>
> On Tue, Sep 2, 2014 at 7:28 AM, Duane Nykamp <[email protected] 
> <javascript:>> wrote: 
> > Is this the intended result of rounding to one decimal place?  Sympy 
> needs 
> > to go back to school on rounding. :) 
> > 
> > In [13]: S(0.06).round(1) 
> > Out[13]: 0.e-1 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sympy" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/sympy. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/sympy/e363eaad-720d-4fe6-8bce-06bafe431c3a%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/6bc89538-9ce6-45f5-a493-8b64ddaf840a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to