From: "McDoobie" <chris@dont.spam.me>
Subject: Working with very large numbers.
Date: Mon, 09 Jul 2001 02:07:19 GMT
Date: 2001-07-09T02:07:19+00:00 [thread overview]
Message-ID: <rl827.179510$DG1.30040897@news1.rdc1.mi.home.com> (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
next reply other threads:[~2001-07-09 2:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-09 2:07 McDoobie [this message]
2001-07-09 2:54 ` Working with very large numbers James Rogers
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