Thread View: net.lang.pascal
1 messages
1 total messages
Started by sullivan
Fri, 14 Sep 1984 21:31
Help! A pc bug we missed!
Author: sullivan
Date: Fri, 14 Sep 1984 21:31
Date: Fri, 14 Sep 1984 21:31
28 lines
1388 bytes
1388 bytes
We are trying to install the DECWRL Modula-2 and have found a bug in the
4.2 pc that we have. Obvously we missed a correction for it somewhere,
so if you have the fix, could you mail it?
The problem lies in assigning an integer constant in the range 128 to 255
to a real variable. The results turn out to be in the range -128 to -1.
Example:
program foo (output);
var
x : real;
begin
{ this is not ok }
x := 255; writeln(x);
{ this is ok }
x := 255.0; writeln(x)
end.
Will produce:
-1.00000000000000e+00
2.55000000000000e+02
Help! We are burning with the desire to get Modula-2 up and running!
Thanks in advance!
David J. Sullivan UUCP: ...!{allegra | ihnp4}!cmcl2!sullivan
New York University ARPA: sullivan@nyu-cmcl2
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads