[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to detect EOFs in SEQ-files using M/C?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In article <Pine.LNX.4.44.0209091326580.1833-100000@lab.oregonvos.net>,
Matthew Montchalin <mmontcha@OregonVOS.net> wrote:
>On Mon, 9 Sep 2002, Wildstar wrote:
>|Simply make a variable PI = 22/7 (That's as close to pi as you ever
>|need to be)
>
>But that departs from the 40 bit precision of Commodore floating point;
>after all, 5 bytes (that is, 40 bits) are reserved in ROM to define
>pi any time it is stumbled upon.
It's also horribly inaccurate. I carried over to the Apple II the same
practice I picked up from the manuals for my TI-99/4A:
PI=4*ATN(1)
It takes slightly longer to calculate, but you only calculate it once.
>From what I can vaguely recall, there was more than one kind of
>Applesoft Basic out there. I think there was something called
>'integer basic' that performed very well compared to floating point.
Integer BASIC != Applesoft. The former was limited to 16-bit integer math,
while the latter does single-precision floating point. Applesoft also
allows character arrays; Integer BASIC doesn't. OTOH, Integer BASIC was
supposed to be somewhat faster at some things...I guess that says something
about Steve Wozniak's coding skillz vs. Bill Gates' coding skillz. :-)
_/_
/ v \ Scott Alfter (salfter@salfter.dyndns.org)
(IIGS( http://salfter.dyndns.org
\_^_/ rm -rf /bin/laden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9fSXyVgTKos01OwkRAsbJAJ4u3JBjrIdjrGHDa+a/kSx5NFOhdQCeNbNp
BTrkNVG1V1bjq2aYG5q4Vuk=
=NZm+
-----END PGP SIGNATURE-----
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----