[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error in number comparison
From: |
Andreas Schwab |
Subject: |
Re: Error in number comparison |
Date: |
Thu, 23 May 2002 11:27:05 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (ia64-suse-linux) |
address@hidden (Miles Bader) writes:
|> John Phillips <address@hidden> writes:
|> > I have a strange problem with Gawk.
|> > Prepending a zero to a number makes it unequal to the original number,
|> > except for single digit numbers.
|>
|> I suspect gawk is treating them as octal numbers, using the `leading 0'
|> convention of C/C++ (the gawk documentation talks about this, in the
|> info node `(gawk)Nondecimal-numbers').
|>
|> You can disable this behavior by using the `--traditional' option, but
|> this also turns off other gawk features; I'm not sure if there's anyway
|> to disable just the interpretation of octal constants.
Using the --posix option is perhaps better.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."