aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-03-22 18:37:52 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-03-22 18:37:52 +0200
commit20a79b31c9897f825323eedee4c0eb01922d53da (patch)
treef8bc24ddb36eea4667844de73d452e167e0bb0d5 /doc/gawk.texi
parenta235d1584e1e3ea07ccaa1c4281af53bd1ca41b0 (diff)
downloadegawk-20a79b31c9897f825323eedee4c0eb01922d53da.tar.gz
egawk-20a79b31c9897f825323eedee4c0eb01922d53da.tar.bz2
egawk-20a79b31c9897f825323eedee4c0eb01922d53da.zip
Add support for %a and %A in printf.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 7b69b528..7dfa3b38 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -9557,6 +9557,25 @@ the field width. Here is a list of the format-control letters:
@c @asis for docbook to come out right
@table @asis
+@item @code{%a}, @code{%A}
+A floating point number of the form
+[@code{-}]@code{0x@var{h}.@var{hhhh}p+-@var{dd}}
+(C99 hexadecimal floating point format).
+For @code{%A},
+uppercase letters are used instead of lowercase ones.
+
+@quotation NOTE
+While the current POSIX standard requires support for @code{%a}
+and @code{%A} in @command{awk}, as far as we know, no other version
+of @command{awk} actually implements it. It's use is thus highly
+nonportable!
+
+Furthermore, these formats are not available on any system where the
+underlying C library @code{printf()} function does not support them. As
+of this writing, among current systems, only OpenVMS is known to not
+support them.
+@end quotation
+
@item @code{%c}
Print a number as a character; thus, @samp{printf "%c",
65} outputs the letter @samp{A}. The output for a string value is