meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming:c:printf [2020/07/03 09:46] – ↷ Page moved from c:printf to programming:c:printf niziakprogramming:c:printf [2024/05/21 19:17] (current) niziak
Line 1: Line 1:
 +====== printf ======
 +
 ====== Cross platform format string ====== ====== Cross platform format string ======
  
Line 19: Line 21:
 ===== Padding negative numbers ===== ===== Padding negative numbers =====
 Flags: Flags:
-    <code>-</code> Left-justify the given field width (see Width below). Right justification is the default. +  ''-'' Left-justify the given field width (see Width below). Right justification is the default. 
-    <code>+</code> Forces a "+" sign to precede a number. Has no effect on negative numbers. +  ''+'' Forces a "+" sign to precede a number. Has no effect on negative numbers. 
-    <code>(space)</code> One blank space is inserted before a positive number, while negative numbers are unaffected. This is useful for making positive and negative numbers vertically align in a visual stacked list.+  ''(space)'' One blank space is inserted before a positive number, while negative numbers are unaffected. This is useful for making positive and negative numbers vertically align in a visual stacked list.