|
From: Jaime V. <vi...@fe...> - 2016-01-27 08:04:54
|
On 26-01-2016 18:11, Raymond Toy wrote: > >> The third one gives an error. > Richard> I think this one fails because exp(10000.0) overflows before float() > Richard> sees it. > Richard> Not a bug? > > I agree. It's not a bug because you're explicitly asking for > exp(10000.0). But perhaps those in favor of returning a bigfloat in > the other cases will see this a a bug too. And this also looks odd: (%i3) float(exp(10000.)); (%o3) 8.806818225658306b4342 (%i4) float(exp(10000.0)); float: floating point overflow converting 8.806818225662922b4342 -- an error. To debug this try: debugmode(true); Jaime |