[sage-devel] Re: __repr__ for RDF

2014-08-21 Thread Volker Braun
+1 There is another ticket that'll require some larger scale fixing of doctests at http://trac.sagemath.org/ticket/16746... On Thursday, August 21, 2014 8:07:22 AM UTC+1, Jeroen Demeyer wrote: > > Currently in Sage, we have > > sage: RR(2/3) > 0.667 > sage: float(2/3) > 0.666

Re: [sage-devel] Re: __repr__ for RDF

2014-08-21 Thread Jeroen Demeyer
On 2014-08-21 15:05, Dima Pasechnik wrote: I think it's a great idea, and will reduce the confusion level quite a bit; what precision will you choose as the right one? I will simply use the repr() function for Python floats (except for NaN and infinities). -- You received this message because

[sage-devel] Re: __repr__ for RDF

2014-08-21 Thread Dima Pasechnik
On 2014-08-21, Jeroen Demeyer wrote: > Currently in Sage, we have > > sage: RR(2/3) > 0.667 > sage: float(2/3) > 0. > sage: RDF(2/3) > 0.6667 > > It's annoying that all these 3 are exactly the same thing (53-bit > precision floats with the same bit pattern), bu