🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #42958

Not a bug in LSP arithmetic

#42958
From: Rick Zaccone
Date: Tue, 23 May 1989 20:02
16 lines
1084 bytes
What I thought was a bug in LSP is not.  Thinking that reading the
manual was useless, I wrote a small program to check the number of
significant digits in a real number, and came up with 20.  After I
posted my "bug" report, I decided to read the manual.

All arithmetic operations are done in extended arithmetic (approx. 20
decimal digits of precision).  However, real variables are capable of
storing about 8.  The soluton to my problem is to declare the
variables to be either double or extended.  My program to calculate
the precision gave me 20 digits because the arithmetic was done in
extended arithmetic.

Rick Zaccone
--
zaccone@bknlvms.bitnet
zaccone@rigel.bucknell.edu
Technical Details
Message-ID: <116@rigel.bucknell.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!psuvax1!hydra!rigel!zaccone

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!psuvax1!hydra!rigel!zaccone
From: zaccone@rigel.bucknell.edu (Rick Zaccone)
Newsgroups: comp.sys.mac,comp.sys.mac.programmer
Subject: Not a bug in LSP arithmetic
Message-ID: <116@rigel.bucknell.edu>
Date: 23 May 89 20:02:24 GMT
Reply-To: zaccone@sol.bucknell.edu ()
Organization: Bucknell University, Lewisburg, Pa.
Lines: 16