On Apr 19, 2010, at 8:31 PM, Jason Grout wrote:
Look at this inconsistency:
sage: RR(0)
0.000
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 h
On Monday, April 19, 2010, Tom Boothby wrote:
> +1 to consistency. IMHO, imprecise fields should represent their zero
> as 0.0, as floats do.
Jason's patch does not do that
>
> On Mon, Apr 19, 2010 at 8:31 PM, Jason Grout
> wrote:
>> Look at this inconsistency:
>>
>> sage: RR(0)
>> 0.
+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
wrote:
> Look at this inconsistency:
>
> sage: RR(0)
> 0.000
> sage: RDF(0)
> 0.0
>
>
> However:
>
> sage: CDF(0)
> 0
> sage: CC(0)
> 0
>
>
> Shoul