[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gawk 3.1.3: $1 float interpretation
From: |
Hartmut Henkel |
Subject: |
gawk 3.1.3: $1 float interpretation |
Date: |
Sat, 19 Jul 2003 16:32:16 +0200 (CEST) |
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 Hartmut
------------------------------------------------------------------------
Dr.-Ing. Hartmut Henkel
In den Auwiesen 6, D-68723 Oftersheim, Germany
E-Mail: address@hidden
http://www.circuitwizard.de
------------------------------------------------------------------------
- gawk 3.1.3: $1 float interpretation,
Hartmut Henkel <=