[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] GAWK 4.1 arbitrary precision integers and E notation
From: |
Hermann Peifer |
Subject: |
[bug-gawk] GAWK 4.1 arbitrary precision integers and E notation |
Date: |
Tue, 06 Aug 2013 07:41:35 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 |
As Arnold requested, I am forwarding the below snippet from a c.l.a.
posting to the bug-gawk mailing list.
Hermann
-------- Original Message --------
Subject: Re: GAWK 4.1 Integer Division
Date: Mon, 5 Aug 2013 19:26:36 +0000 (UTC)
From: address@hidden (Aharon Robbins)
Organization: A noiseless patient Spider
Newsgroups: comp.lang.awk
References: <address@hidden>
<address@hidden>
<address@hidden>
<address@hidden>
Hermann Peifer <address@hidden> wrote:
# 10^30 obviously "looks like an integer" and is handled accordingly
$ gawk -M 'BEGIN{print 10^30}'
1000000000000000000000000000000
The MPFR code deals with this and figures it out.
# But 1e+30 doesn't seem to look like an integer..
$ gawk -M 'BEGIN{print 1e+30}'
1000000000000000019884624838656
The exponential form is by definition floating point. This conversion
might be a bug. Can you file a bug report so that I'll look into it?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-gawk] GAWK 4.1 arbitrary precision integers and E notation,
Hermann Peifer <=