comp.lang.ada
 help / color / mirror / Atom feed
From: bglbv@my-dejanews.com
Subject: Re: Very big Integers
Date: 1999/04/24
Date: 1999-04-24T00:00:00+00:00	[thread overview]
Message-ID: <87676lsl2h.fsf@bglbv.my-dejanews.com> (raw)
In-Reply-To: 7fq44c$16m1@news1.newsguy.com

Samuel Mize <smize@imagin.net> writes:

> make it a new type instead of a subtype, i.e. make the declaration:
> 
>   type Big_Natural is range 0 .. 2**100;
> 
> and see if it compiles.

Indeed, direct support for 100-bit integers is rare nowadays.
On some platforms, 128-bit floating point may come close to the
required 100 bits of mantissa. (In fact, on an IEEE machine it
should have slightly more than that. But the "100" probably wasn't
meant literally.)

> If not, you'll have to build your own type.  There may be some
> huge-number packages around, check the repositories you can
> links to via http://www.adahome.com or http://www.acm.org/sigada .

Also check out mpfun from netlib. It's in Fortran, but package
Interfaces.Fortran is your friend.




  reply	other threads:[~1999-04-24  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-23  0:00 Very big Integers Denny
1999-04-23  0:00 ` Samuel Mize
1999-04-24  0:00   ` bglbv [this message]
1999-04-25  0:00     ` Matthew Heaney
1999-04-29  0:00       ` bglbv
1999-04-25  0:00     ` Robert Dewar
1999-04-29  0:00       ` bglbv
1999-04-26  0:00 ` Dmitri Anisimkov
1999-05-04  0:00 ` Vincent P. Amiot
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox