REAL Output: The F Descriptor

The Fw.d descriptor is for REAL output. The general form is

rFw.d

The meaning of r, w and d are

F is for REAL

w is the width of field, which indicates that a real number should be printed with w positions.

d indicates the number of digits after the decimal point. More precisely, of these w positions, the right-most d positions are for the fraction part of a real number, and the d+1 position from the right is a decimal point. The remaining w-(d+1) positions are for the integral part. This is shown in the figure below

 

Examples