[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk 3.1.3: $1 float interpretation
From: |
Carlos Soria del Hoyo |
Subject: |
Re: gawk 3.1.3: $1 float interpretation |
Date: |
Tue, 19 Jul 2005 19:42:01 +0200 |
User-agent: |
KMail/1.7.1 |
Hello. Some more questions, if you are so kind.
I want to write some C/C++ code that will make use of some of the
functionalities of GAWK. Is there something as a 'C API' of 'libgawk' to call
gawk functions from C code? Same question about regular expression.
Thank you.
Carlos.
El Martes, 28 de Junio de 2005 07:17, escribió:
> 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
- Re: gawk 3.1.3: $1 float interpretation,
Carlos Soria del Hoyo <=