Article View: net.lang.pascal
Article #95Help! A pc bug we missed!
From: 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
Technical Details
Message-ID:
<22300001@cmcl2.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!hplabs!hao!seismo!cmcl2!sullivanShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: nyu notesfiles V1.1 4/1/84; site cmcl2.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!hplabs!hao!seismo!cmcl2!sullivan From: sullivan@cmcl2.UUCP Newsgroups: net.lang.pascal Subject: Help! A pc bug we missed! Message-ID: <22300001@cmcl2.UUCP> Date: Fri, 14-Sep-84 17:31:00 EDT Article-I.D.: cmcl2.22300001 Posted: Fri Sep 14 17:31:00 1984 Date-Received: Tue, 25-Sep-84 02:29:46 EDT Organization: New York University Lines: 28 Nf-ID: #N:cmcl2:22300001:000:749 Nf-From: cmcl2!sullivan Sep 14 17:31:00 1984