Kevin Ryde on Thu, 28 Oct 2021 09:32:45 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: sqrtint() on non-integer arguments


Karim Belabas <Karim.Belabas@math.u-bordeaux.fr> writes:
>
> even floor(1.0) would not be
> well defined if 1.0 may represent any real number within 1ulp

Ah, on that one I'd be content that the mantissa extends down to the
radix point, so sensible within usual floating point accuracy.

The aim, yes?, of floor(1e40) giving an error is to notify of the worst
kinds of truncation trouble, where a mantissa is definitely too small
for what's asked of it ...