Silverfrost Logo About Us | Contact Us
 

%wf - Display Real

%wf is used for the output of floating point values in decimal form.

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

 

 

Copyright © 1999-2017 Silverfrost Limited