Article View: net.bugs
Article #47PASCAL BUG?
From: utzoodecvaxharpofloydvax135ariel...
Date: Wed, 20 Oct 1982 16:08
Date: Wed, 20 Oct 1982 16:08
28 lines
883 bytes
883 bytes
Here is one that is driving us crazy tracking down the problem.
Can someone help us out.
The following PASCAL program
program bug (input,output);
const
x1 = 200;
x2 = 200.0;
var
x: real;
begin
x := x1;
write(x:6:3);
x := x2;
write(x:6:3);
end.
produces this output
-56.000 200.000
This is clearly not what I would expect and while it isn't difficult
to work around in the programs I deal with it is still a pain in the
gazabahs. As they say, `Thanks in advance'
Joel Coltoff
lime!burdvax!coltoff
Technical Details
Message-ID:
<bnews.burdvax.241>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!decvax!harpo!floyd!vax135!ariel!houti!lime!burdvax!coltoff Newsgroups: net.bugs,net.unix-wizards Title: PASCAL BUG? Article-I.D.: burdvax.241 Posted: Wed Oct 20 16:08:16 1982 Received: Thu Oct 21 01:00:44 1982 Subject: PASCAL BUG? Date: Wed, 20 Oct 1982 16:08:16 +0000 Message-ID: <bnews.burdvax.241>