Commit 3c031bca authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(Formatting Strings): Document '+' flag.

parent 01769a73
...@@ -887,9 +887,11 @@ specification characters. ...@@ -887,9 +887,11 @@ specification characters.
Immediately after the @samp{%} and before the optional width and Immediately after the @samp{%} and before the optional width and
precision, you can put certain ``flag'' characters. precision, you can put certain ``flag'' characters.
A space character inserts a space for positive numbers (otherwise A space character inserts a space for positive numbers, a plus character
nothing is inserted for positive numbers). This flag is ignored inserts a plus sign (otherwise nothing is inserted for positive
except for @samp{%d}, @samp{%e}, @samp{%f}, @samp{%g}. numbers). These flags are ignored except for @samp{%d}, @samp{%e},
@samp{%f}, @samp{%g}, and if both flags are present the space is
ignored.
The flag @samp{#} indicates ``alternate form.'' For @samp{%o} it The flag @samp{#} indicates ``alternate form.'' For @samp{%o} it
ensures that the result begins with a 0. For @samp{%x} and @samp{%X} ensures that the result begins with a 0. For @samp{%x} and @samp{%X}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment