bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: gawk 3.1.3: $1 float interpretation


From: Aharon Robbins
Subject: Re: gawk 3.1.3: $1 float interpretation
Date: Tue, 28 Jun 2005 08:17:52 +0300

Greetings. You're undoubtedly on a GNU/Linux system and using
a xxx_es default domain for things like LC_NUMERIC and LC_ALL, no?

You can either change your data to use whatever your domain thinks is
the decimal point character, or you can

        export LC_ALL=C

in your environment, and things should start working again.

FYI, 3.1.4 is the current version, and 3.1.5 is due out Real Soon Now
(beta at http://www.skeeve.com/gawk-3.1.4l.tar.gz).

HTH,

Arnold

> Date: Mon, 27 Jun 2005 20:39:25 +0200
> From: Carlos Soria del Hoyo <address@hidden>
> Subject: gawk 3.1.3: $1 float interpretation
> To: address@hidden
>
> Hi,
>
> I have some data file "foo", just 2 lines:
>
> 0.1
> 1.1
>
> and the following simple awk-scipt "bar.awk":
>
> // {print $1; print ($1 * 1000) }
>
> Calling:
>
> $ awk -f bar.awk foo
>
> gives:
>
> 0.1
> 0
> 1.1
> 1000
>
> It seems that the digits behind the decimal point are ignored. Former
> gawk 3.1.0 gives:
>
> 0.1
> 100
> 1.1
> 1100
>
> which is the right behaviour, I guess. A bug in gawk 3.1.3?
>
> Greetings




reply via email to

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