From: spiegel@bruessel.informatik.uni-stuttgart.de (Andre Spiegel)
Subject: Re: Large Integers?
Date: Fri, 13 Jan 1995 15:56:21 GMT
Date: 1995-01-13T15:56:21+00:00 [thread overview]
Message-ID: <SPIEGEL.95Jan13165621@berlin.bruessel.informatik.uni-stuttgart.de> (raw)
In-Reply-To: eachus@spectre.mitre.org's message of 11 Jan 1995 14:50:36 GMT [ 11 Jan 1995 15:50:36 MET ]
In article <EACHUS.95Jan11095036@spectre.mitre.org> eachus@spectre.mitre.org (Robert I. Eachus) writes:
> If all you are doing is counting, ANY 64-bit floating point type
> will fill your needs. Integers are always model numbers, and thus
> exact, up to 2**Float_Type'MANTISSA, which should give more than your
> required 40 bits. You only need the ADAR packages if you need integer
> semantics for division.
That's an interesting suggestion. I really hadn't thought of this,
probably because of a general mistrust concerning floating point
arithmetic. It's just that it requires minor changes to my I/O
routines, because I don't want the trailing ".0". So I would have to
strip it before actually writing the "Image" of the number, and supply
such a suffix before trying to read it back. A little unelegant. Or is
there any way to configure Float_IO such that it doesn't add/expect
the zero fractional part? I don't think so. It might also be a
somewhat less efficient than using an integer package.
Thanks a lot, though. Seems like I didn't *really* know precisely
what I need...
--
Andre Spiegel | This life is a test. It is only a test.
| Had this been an actual life, you would
University of Stuttgart, Germany | have received further instructions as to
Computer Science | where to go and what to do.
-- Author unknown
email: spiegel@bruessel.informatik.uni-stuttgart.de
next prev parent reply other threads:[~1995-01-13 15:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-01-10 10:56 Large Integers? Andre Spiegel
1995-01-10 19:47 ` Ken Anderson
1995-01-10 20:45 ` Charles H. Sampson
1995-01-11 2:39 ` Robert Dewar
[not found] ` <EACHUS.95Jan11095036@spectre.mitre.org>
1995-01-13 15:56 ` Andre Spiegel [this message]
[not found] ` <SPIEGEL.95Jan11111040@berlin.bruessel.informatik.uni-stuttgart.de>
[not found] ` <3fhjr1$4h8@rational.rational.com>
1995-01-18 23:22 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox