comp.lang.ada
 help / color / mirror / Atom feed
From: James Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: Working with very large numbers.
Date: Mon, 09 Jul 2001 02:54:02 GMT
Date: 2001-07-09T02:54:02+00:00	[thread overview]
Message-ID: <3B491D56.65532261@worldnet.att.net> (raw)
In-Reply-To: rl827.179510$DG1.30040897@news1.rdc1.mi.home.com

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



  reply	other threads:[~2001-07-09  2:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-09  2:07 Working with very large numbers McDoobie
2001-07-09  2:54 ` James Rogers [this message]
2001-07-09  4:05   ` McDoobie
2001-07-09 12:42     ` Marc A. Criley
replies disabled

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