From: Samuel Mize <smize@imagin.net>
To: denny@earthling.net, smize
Subject: Re: Very big Integers
Date: 1999/04/23
Date: 1999-04-23T00:00:00+00:00 [thread overview]
Message-ID: <7fq44c$16m1@news1.newsguy.com> (raw)
In-Reply-To: Pine.GSO.4.10.9904231559080.7427-100000@tick.informatik.uni-stuttgart.de
Denny <vrandezo@trick.informatik.uni-stuttgart.de> wrote:
> I'd like to know, if there is any possibility to use natural numbers
> bigger than Integer'LAST, to print them on the screen and to calculate
> with them (add, subtract, power, multiplicate)...
>
> Something like
>
> subtype Big_Natural is Very_Long_Integer range 0..2**100 (about, the
> bigger the better)
It's possible, but unlikely, that your compiler supports them. Just
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.
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 .
If you can't find one, it shouldn't be too hard to build a new type.
Best,
Sam Mize
--
Samuel Mize -- smize@imagin.net (home email) -- Team Ada
Fight Spam: see http://www.cauce.org/ \\\ Smert Spamonam
next prev parent reply other threads:[~1999-04-23 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 [this message]
1999-04-24 0:00 ` bglbv
1999-04-25 0:00 ` Robert Dewar
1999-04-29 0:00 ` bglbv
1999-04-25 0:00 ` Matthew Heaney
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