20 Jul
1999
20 Jul
'99
12:31 a.m.
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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
9883
Age (days ago)
9883
Last active (days ago)
0 comments
1 participants
participants (1)
-
Frank Heckenbach