Charles Greathouse on Mon, 25 Oct 2021 23:41:56 +0200


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

Re: sqrtint() on non-integer arguments


This would be useful to me and should be trivial to implement (a single call to gfloor, change gp2c type from int to mp).

On Mon, Oct 25, 2021 at 5:02 PM Max Alekseyev <maxale@gmail.com> wrote:
sqrtint() does not accept non-integer arguments such as t_REAL or t_FRAC.
I think it'd be helpful if it did so, which is easy to archive by calling floor() before performing actual computation. I believe it used to work like this a while ago, but not anymore.

Same applies to sqrtnint().

Thanks,
Max