Re: [sage-devel] Missing digits in numerical_approx

2011-12-14 Thread William Stein
2011/12/14 Jérôme Tremblay : > Using n() sometimes returns the wrong number of digits > > This is correct: > > sage: a = n(golden_ratio, digits=5000) > sage: len(str(a)) > 5001 > > This is not: > > sage: a = n(golden_ratio, digits=500) > sage: len(str(a)) > 489 > > Any clue? My first guess

[sage-devel] Missing digits in numerical_approx

2011-12-14 Thread Jérôme Tremblay
Using n() sometimes returns the wrong number of digits This is correct: sage: a = n(golden_ratio, digits=5000) sage: len(str(a)) 5001 This is not: sage: a = n(golden_ratio, digits=500) sage: len(str(a)) 489 Any clue? Jerome Tremblay LaCIM, UQAM -- To post to this group, send an ema