Ricky W. Butler wrote:
The following program:
program bug(input,output); var x : real;
begin x := 0.5000000000000E+00; writeln(' x = ',x:10:3); end.
incorrectly prints out
x = 5.000
It should print out
x = 0.500
This seems to be a severe bug. Thanks for pointing it out. It has been added to our test suite (rick1.pas), and will hopefully be fixed soon.
As a work-around, you could use `E-00' instead of `E+00' (or no exponent at all)...
Frank