🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1892

Rounding error?!?!

#1892
From: Alastair Adamson
Date: Tue, 08 Sep 1992 14:50
20 lines
982 bytes
I wrote the following trivial program to test my disbelief.
It simply prints the difference between the "y" value used in
a "moveto" and the "y" value returned by "currentpoint".
I am amazed by the magnitude of the resulting value. Can this
simply be put down to rounding error? Does anyone have a better
explanation. The test was done on a LaserWriter II NTX.

%!
/y 700 def
/x 100 def
/Times-Roman findfont 20 scalefont setfont
x y moveto
currentpoint exch pop
y sub
(                  ) cvs show
showpage

Thanks in advance for any help you can give me,
	Alastair Adamson
	alastair@cetia.fr
Technical Details
Message-ID: <1992Sep8.145018.27114@cetia.fr>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!vogon!bugle!alastair

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!vogon!bugle!alastair
From: alastair@bugle.cetia.fr (Alastair Adamson)
Newsgroups: comp.lang.postscript
Subject: Rounding error?!?!
Message-ID: <1992Sep8.145018.27114@cetia.fr>
Date: 8 Sep 92 14:50:18 GMT
Sender: news@cetia.fr (News Manager)
Reply-To: alastair@bugle.cetia.fr (Alastair Adamson)
Organization: Cetia
Lines: 20