%wf (Display Real) is used for the output of floating point values in decimal form. If you need to update the value on screen then consider using %`rf. See also %we (Display Real), %wg (Display Real)
format |
output for x=1.26 |
comment |
%wf |
|
6 decimal places, otherwise minimum width |
%10wf |
ÑÑ |
minimum of 10 characters, right justified |
%6.2wf |
ÑÑ |
6 characters, 2 decimal places |
%2.0wf |
Ñ |
2 characters, no decimal point |
%-6.1wf |
|
6 characters, 1 decimal place, left justified |
%07.3wf |
|
right justified, padded with zeros |
%+6.2wf |
Ñ |
force a + sign when not negative |
%#4.0wf |
ÑÑ |
forces a decimal point when the precision modifier is zero |