Re: [sage-devel] Re: Bug or Feature: assumed precision of RealNumber depends on zero(s) before decimal point

2017-04-02 Thread moritz
thanks for the quick fix, Robert! This is know the behavior I would have expected! -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googleg

Re: [sage-devel] Re: Bug or Feature: assumed precision of RealNumber depends on zero(s) before decimal point

2017-03-31 Thread Robert Bradshaw
This is indeed a bug. The logic was meant to handle the case '1.23' (a decimal in the middle of the mantissa) as having three significant figures. https://github.com/sagemath/sage/pull/74 On Fri, Mar 31, 2017 at 8:02 AM, William Stein wrote: > Ok I think I just made a remark this is irrelevant

Re: [sage-devel] Re: Bug or Feature: assumed precision of RealNumber depends on zero(s) before decimal point

2017-03-31 Thread William Stein
Ok I think I just made a remark this is irrelevant to your actual question. CC'ing Robert Bradshaw who I think wrote the relevant code for choosing precision... On Fri, Mar 31, 2017 at 8:00 AM William Stein wrote: > On Fri, Mar 31, 2017 at 7:24 AM Travis Scrimshaw > wrote: > > I believe this

Re: [sage-devel] Re: Bug or Feature: assumed precision of RealNumber depends on zero(s) before decimal point

2017-03-31 Thread William Stein
On Fri, Mar 31, 2017 at 7:24 AM Travis Scrimshaw wrote: > I believe this comes from > > if '.' in mantissa and mantissa[:2] != '0.': > sigfigs -= 1 > > is RealNumber. Now, as to why this was decided, this is outside of my > knowledge. > In sage (which just wraps mpdr) the pr

[sage-devel] Re: Bug or Feature: assumed precision of RealNumber depends on zero(s) before decimal point

2017-03-31 Thread Travis Scrimshaw
I believe this comes from if '.' in mantissa and mantissa[:2] != '0.': sigfigs -= 1 is RealNumber. Now, as to why this was decided, this is outside of my knowledge. Best, Travis -- You received this message because you are subscribed to the Google Groups "sage-devel" grou