%wf - Display Real

%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

1.260000

6 decimal places, otherwise minimum width

%10wf

ÑÑ1.260000

minimum of 10 characters, right justified

%6.2wf

ÑÑ1.26

6 characters, 2 decimal places

%2.0wf

Ñ1

2 characters, no decimal point

%-6.1wf

1.3ÑÑÑ

6 characters, 1 decimal place, left justified

%07.3wf

001.260

right justified, padded with zeros

%+6.2wf

Ñ+1.26

force a + sign when not negative

%#4.0wf

ÑÑ1.

forces a decimal point when the precision modifier is zero

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited