comp.lang.ada
 help / color / mirror / Atom feed
* Working with very large numbers.
@ 2001-07-09  2:07 McDoobie
  2001-07-09  2:54 ` James Rogers
  0 siblings, 1 reply; 4+ messages in thread
From: McDoobie @ 2001-07-09  2:07 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-07-09 12:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-09  2:07 Working with very large numbers McDoobie
2001-07-09  2:54 ` James Rogers
2001-07-09  4:05   ` McDoobie
2001-07-09 12:42     ` Marc A. Criley

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