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

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

gawk 3.1.3: $1 float interpretation


From: Carlos Soria del Hoyo
Subject: gawk 3.1.3: $1 float interpretation
Date: Mon, 27 Jun 2005 20:39:25 +0200
User-agent: KMail/1.7.1

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]