bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Gawk manual:some comments


From: Hermann Peifer
Subject: Re: [bug-gawk] Gawk manual:some comments
Date: Sun, 25 Jan 2015 21:51:04 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Thanks for fixing the URLs. About this one:

b) section 15.4.1.1: printf("%0.17g, %0.17g\n", x, y)

I wonder if the width of '0' is really needed here, in particular as the
context mentions "%.17g" instead.

The 0 is a flag, meaning padd with with zeros.

Indeed, now I know. In a mail that somehow did not get through to bug-gawk, Nelson H. F. Beebe mentioned a few days ago:

> That 0 is not the field width, but rather the 0-flag
> (...)
> However, Hermann is correct in pointing out that, because the field
> width is at its default minimum size, no zero filling is possible.

Anyway, it's a small issue.

Hermann



reply via email to

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