delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/11/15:10:56

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HIGH PRESICSION INTEGER ROUTINES?
Date: Tue, 11 Feb 1997 12:05:49 +0100
Organization: TU Chemnitz-Zwickau
Lines: 24
Message-ID: <3300528C.1855@Mathematik.tu-chemnitz.de>
References: <5dojhg$ok4 AT news DOT ysu DOT edu>
NNTP-Posting-Host: memory.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

David A. Scott wrote:
> 
>  I was wondering are there any large number integer
> C routines for DJGPP C out there that are free to use?

For C the largest buildin integer type is 'long long',
which is a 64 bit integer. If you need larger integers
you can use (but this needs to write C++ code) the
"class Integer" from libgplus, which allows you to
use an infinity large integer. (limited only by the
available memory).

I used it already together with the "Rational" class,
which works perfect for writing math programs, which
use rational numbers.

Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019