On Apr 19, 2010, at 8:31 PM, Jason Grout wrote:

Look at this inconsistency:

sage: RR(0)
0.000000000000000
sage: RDF(0)
0.0


However:

sage: CDF(0)
0
sage: CC(0)
0


Shouldn't CDF(0) and CC(0) also print out decimals like RR(0) and RDF(0)?

I've posted a very small patch which does this on http://trac.sagemath.org/sage_trac/ticket/8720 . However, of course, this necessitates changing lots of doctests. Before going through all of that work, I thought I'd bring it up for comment here. What do people think?

This has bugged and bitten me too, so +1 for them printing as RR(0) and RDF(0) respectively (and I agree with your rational later in this thread).

- Robert


--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to