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

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

Re: awk float problems ( decimal dot or comma separator and unexpected r


From: Jürgen Kahrs
Subject: Re: awk float problems ( decimal dot or comma separator and unexpected results whether print or printf)
Date: Wed, 02 Aug 2006 19:06:19 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060527)

Ramírez Sánchez-Escobar José Julio wrote:

> Summing up, How can I increase the value 0.5 in steps of 0.5 each, 
> and why I'm getting as decimal separator a comma instead of a dot?.

Because your locale (in Spain) uses a comma.
Use the command "locale" and find out how your
settings actually are.

> There is anyway to specify the kind of awk separator for floats as 
> an others prebuilt awk variables?

Yes, use a different locale. This is an OS setting.

LC_ALL=C

> Could this be the problem to get the right value?, Is this a bug?

No, this is not a bug. At least not in gawk.

> I'm completely lost with this, and I would appreciate very much 
> any suggestion.

This is a FAQ. Ask other users before posting a "bug"
to gnu.utils.bug. If you really want people to help
you, take care to ease the pain of reading your stream
of actions.




reply via email to

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