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: Hartmut Henkel
Subject: Re: gawk 3.1.3: $1 float interpretation
Date: Sat, 19 Jul 2003 16:58:25 +0200 (CEST)

Just found that this is a LOCALE problem. The error appears with
LANG=de_DE.ISO-8859-1, but gawk does correctly if LANG="C". So LANG
should be set to "C" where gawk scans his input.

Greetings Hartmut


On Sat, 19 Jul 2003, Hartmut Henkel wrote:

> 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?


------------------------------------------------------------------------
Dr.-Ing. Hartmut Henkel
In den Auwiesen 6, D-68723 Oftersheim, Germany
E-Mail: address@hidden
http://www.circuitwizard.de
------------------------------------------------------------------------




reply via email to

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