+1 to consistency.  IMHO, imprecise fields should represent their zero
as 0.0, as floats do.

On Mon, Apr 19, 2010 at 8:31 PM, Jason Grout
<jason-s...@creativetrax.com> 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?
>
> Thanks,
>
> Jason
>
> --
> 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
>

-- 
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