SPECIFYING THE DISPLAY FORMAT FOR THE OUTPUT OF VARIABLES
When variables are displayed, our version of Pascal assigns a specified number of character spaces (called a field width) to display them. The field widths for the various data types are,

	INTEGER -  Number of digits + 1 { or +2 if negative }
	CHAR    -  1 for each character
	REAL    -  12
	BOOLEAN -  4 if true, 5 if false

Often, the allotted field size is too big for the majority of display output. Pascal provides a way in which the programmer can specify the field size for each output.

	writeln('WOW':10,'MOM!':10,'Hi there.');
The display output will be as follows,

	WOW.......MOM!......Hi there.          ... indicates a space.

Note that to specify the field width of text or a particular variable, use a colon (:) followed by the field size.

	'text string':fieldsize, variable:fieldsize


Copyright B Brown/P Henry/CIT, 1988-1997. All rights reserved.
<