[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Is -M enabled by default?
From: |
arnold |
Subject: |
Re: [bug-gawk] Is -M enabled by default? |
Date: |
Tue, 13 Feb 2018 00:51:08 -0700 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Peng Yu <address@hidden> wrote:
> Hi,
>
> https://www.gnu.org/software/gawk/manual/html_node/Arbitrary-Precision-Integers.html
>
> It sounds like gawk does not enable arbitrary-precision integer
> arithmetic by default. But the following example shows the opposite.
>
> awk -e 'BEGIN{ x = 1; for(i=1;i<1000;++i) { x = x * 2; print x} }'
>
> Do I misunderstand the manual? When does awk use int32, int64 or
> int128 for an integer?
>
> --
> Regards,
> Peng
Please see the other answers. Gawk doesn't use integers; either
double precision floating point (default) or MPFR (-M).
Thanks,
Arnold
Re: [bug-gawk] Is -M enabled by default?,
arnold <=