X-Authentication-Warning: ieva01.lanet.lv: pavenis owned process doing -bs Date: Wed, 4 Aug 1999 09:57:06 +0300 (WET) From: Andris Pavenis To: djgpp AT delorie DOT com Subject: Re: Unlimited size integers In-Reply-To: <37a6d475.178890@newsb.telia.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 3 Aug 1999, Johan Winge wrote: > On Fri, 30 Jul 1999 21:38:06 +0300, pavenis AT lanet DOT lv wrote: > > >On 30 Jul 99, at 13:41, Marcus Rohrmoser wrote: > > > >> > >> There's a possibility if using C++. See for an example how > >> to create your own types beeing useable like builtins. > >> > >> But 'unlimited' still won't be possible, for your computer's memory IS > >> limited. > > Yes, of course. In fact integers up to 2^10000000 will do nicely. > (That is approx. 1 MB for each number, and I only need a couple of > them...) > > > > >1) Install libg++ binaries > > > >2) After that > > #include > > Ok so far. > > > and class Integer provides functionality You want (of course > > for C++ only) > > Uhm, this may sound stupid but could you show exactly how? How to > initialise the integers etc? > If the value You want assign to Integer variable is longer than gcc can handle then perhaps only way is through character string, like: Integer x = atoI("123448599959896499494958494938993939949",10);