1
Vote

Zero value not printed if width specified

description

The write procedure doesn't print zero in fixed-point representation when widths are specified.
That is, the following program segment prints a blank line instead of a line containing a 0:
var z: real;
begin
    z := 0.0;
    writeln(z:6:3)
end
This appears to be only affecting the zero, other values do get to be printed.
Module attached.

file attachments

comments