bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] inside awk script check that -M/--bignum given on command


From: Andrew J. Schorr
Subject: Re: [bug-gawk] inside awk script check that -M/--bignum given on command line?
Date: Thu, 4 Jan 2018 21:16:02 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Jannick,

On Fri, Jan 05, 2018 at 03:04:01AM +0100, Jannick wrote:
> I quickly checked the code above which does the job after decreasing fpbits
> to 53.

If you decrease fpbits to 53, then you're not actually testing for MPFR,
since standard double-precision floating-point gives you 53 bits of
precision.

> The exact version I am working with is GNU Awk 4.2.0, API: 2.0 (GNU
> MPFR 3.1.6-p1, GNU MP 6.1.2) which is shipped by cygwin (I am sitting in
> front of a Win10 box). Presumably gawk needs to be updated to MPFR 4.0.0
> such that everything works properly, however the compilation exercise is not
> always pure fun with configure, automake and co.  I will try tomorrow if I
> can make my way through the compilation of gmp and mpfr and then finally
> gawk.

I am running on Linux with MPFR 3.1.1 and GMP 6.0.0, and gawk -M works
fine for me. Why do you need to update?

> So all in all, the method does work, however the expected precision is the
> issue here.

How many bits of precision does your program need to run correctly?
That should be the value of fpbits.

Regards,
Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]