%we is used for the output of floating point values in exponent form. The exponent part (following the letter 'e') always contains a sign and two digits.
format |
output for x=0.0126 |
comment |
%we |
|
6 decimal places, otherwise minimum width |
%14we |
�� |
minimum of 14 characters, right justified |
%10.2we |
�� |
10 characters, 2 decimal places |
%6.0we |
� |
6 characters, no decimal point |
%-9.1we |
|
9 characters, 1 decimal place, left justified |
%010.3we |
|
right justified, padded with zeros |
%+10.2we |
� |
force a + sign when not negative |
%#8.0we |
�� |
forces a decimal point when the precision modifier is zero |