[comp.sys.mac] Not a bug in LSP arithmetic

zaccone@rigel.bucknell.edu (Rick Zaccone) (05/24/89)

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