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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd6a7b18ad586b7f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-08 19:54:03 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news-east.rr.com!news.rr.com!wn2feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3B491D56.65532261@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Working with very large numbers. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 09 Jul 2001 02:54:02 GMT NNTP-Posting-Host: 12.86.34.190 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 994647242 12.86.34.190 (Mon, 09 Jul 2001 02:54:02 GMT) NNTP-Posting-Date: Mon, 09 Jul 2001 02:54:02 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:9656 Date: 2001-07-09T02:54:02+00:00 List-Id: Sounds like you want extended precision numbers. Look on the adapower web site for a package enabling just such types. Jim Rogers Colorado Springs, Colorado USA McDoobie wrote: > > Alright...I know about long_integers and long_long_integers and all that. > > What I'm trying to figure out is how do I work with numbers in which the > standard supplied types are just too small? Specifically, how do I allocate > storage dynamically based upon the size of the integer entered? > > I was thinking about using something along the lines of ... > > type big_ass_num; > type biggie_ptr is access big_ass_num; > > type big_ass_num is (s , (len)'value); > > Big_Kahuna: biggie_ptr'(big_ass_num'Range(<>)); > Little_Kahuna: biggie_ptr'(big_ass_num'Range( Big_Kahuna > ... (<>)); > > Or some crazy crap along those lines. > > Anyways, as you can tell, I havent quite got the gist of it yet. > > Any help would be appreciated. > > McDoobie > chris@dont.spam.me