From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,HK_RANDOM_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a0f1b3fbaa361b4 X-Google-Attributes: gid103376,public From: bglbv@my-dejanews.com Subject: Re: Very big Integers Date: 1999/04/24 Message-ID: <87676lsl2h.fsf@bglbv.my-dejanews.com>#1/1 X-Deja-AN: 470497979 References: <7fq44c$16m1@news1.newsguy.com> X-Complaints-To: abuse@freeuk.net X-Trace: nnrp2.clara.net 924993594 212.126.147.91 (Sat, 24 Apr 1999 23:39:54 BST) NNTP-Posting-Date: Sat, 24 Apr 1999 23:39:54 BST Newsgroups: comp.lang.ada Date: 1999-04-24T00:00:00+00:00 List-Id: Samuel Mize 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.