Format 'sprintf' style format string with given parameters. Format
may contain fields:
|
% [-]? [+]? [0]? [width] ( [.] [precision] ) [csdifg]
|
| - |
Adjust left, instead of right.
|
| + | Numbers with sign |
| 0 | Pad numbers with zeros, instead of spaces |
| width | Width of field, if '*' width will be taken from arguments |
| precision | Width of fraction part (doubles), if '*' width will be
taken from arguments |
| c |
Character (integer or first character from string).
|
| s | String |
| d,i | Integer |
| f |
Float, follows width.precision stricly
|
| g |
Float with signicant fraction shown, if precision is zero (or not given)
shows significant digits from it.
|
Use %% to escape %.