bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Handling hexadecimals in different modes


From: Aharon Robbins
Subject: Re: [bug-gawk] Handling hexadecimals in different modes
Date: Wed, 16 Sep 2015 05:07:06 +0300
User-agent: Heirloom mailx 12.5 6/20/10

> Date: Mon, 14 Sep 2015 12:15:14 +0300
> From: Jarno Suni <address@hidden>
> To: address@hidden
> Cc: address@hidden
> Subject: Re: [bug-gawk] Handling hexadecimals in different modes
>
> On Tue, 08 Sep 2015 07:34:12 -0600
> address@hidden wrote:
>
> > Jarno Suni <address@hidden> wrote:
>
> > > Then it would work the same way as other awk implementations I have
> > > tested (i.e. mawk and original-awk in Ubuntu Linux).
> > 
> > This is accidental, since those versions just call strtod and GLIBC
> > strtod handles hex values.  This is discussed somewhat in the gawk
> > doc.  The upshot is that you cannot rely on that behavior on non-GLIBC
> > systems.
>
> Where in the doc?

http://www.gnu.org/software/gawk/manual/html_node/POSIX-Floating-Point-Problems.html#POSIX-Floating-Point-Problems

This doesn't mention GLIBC explicitly, but it boils down to the same
thing, since POSIX specifies atof or strtod, and the C99 version
does hex.

Arnold



reply via email to

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