Article View: comp.lang.postscript
Article #4799Re: BUG
From: Gisle Aas
Date: Thu, 21 Feb 1991 14:31
Date: Thu, 21 Feb 1991 14:31
22 lines
1456 bytes
1456 bytes
In article <218@wander.UUCP> hicham@olsen.UUCP (Hicham Bahi) writes: > > /str 10 string def > 150 280 moveto > currentpoint 280 eq str cvs show > > The display I got from both my Laser printer and > Ghostscript was FALSE. The currentpoint operator returns real numbers. You compare it with an integer value, which probably is converted to a real number before the test takes place. Comparing real number for equality is not advisable. In addition you should be aware that you may get a small round-off error because the coordinates are converted to device coordinates after the moveto operator. The currentpoint operator converts them back into user coordinates. -- Gisle Aas | snail: Boks 114 Blindern, N-0314 Oslo, Norway Norsk Regnesentral | X.400: G=Gisle;S=Aas;O=nr;P=uninett;C=no voice: +47-2-453561 | inet: Gisle.Aas@nr.no
Technical Details
Message-ID:
<AAS.91Feb21153148@aase.nr.no>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!crdgw1!rpi!uupsi!sunic!kth.se!ugle.unit.no!nuug!ulrik!ulrik!aasReferences:
<218@wander.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!crdgw1!rpi!uupsi!sunic!kth.se!ugle.unit.no!nuug!ulrik!ulrik!aas From: aas@aase.nr.no (Gisle Aas) Newsgroups: comp.lang.postscript Subject: Re: BUG Message-ID: <AAS.91Feb21153148@aase.nr.no> Date: 21 Feb 91 14:31:48 GMT References: <218@wander.UUCP> Sender: news@ulrik.uio.no (USENET News System) Reply-To: Gisle.Aas@nr.no Organization: Norwegian Computing Centre, Oslo, Norway Lines: 22 In-Reply-To: hicham@olsen.UUCP's message of 20 Feb 91 14:14:40 GMT