Thread View: comp.std.c++
3 messages
3 total messages
Started by Domenico De Vitto
Mon, 05 Oct 1992 11:42
Extended Double ?
Author: Domenico De Vitto
Date: Mon, 05 Oct 1992 11:42
Date: Mon, 05 Oct 1992 11:42
11 lines
609 bytes
609 bytes
Is there a any classes anywhere that allow greater presision than long double ? Ideally one where only memory was a limit would be best. Surely _somone_ has written something like this ? TIA, Dom De Vitto
Re: Extended Double ?
Author: Markku Sakkinen
Date: Mon, 05 Oct 1992 13:46
Date: Mon, 05 Oct 1992 13:46
21 lines
1315 bytes
1315 bytes
In article <1992Oct5.114242.15590@unix.brighton.ac.uk> ddv@unix.brighton.ac.uk (Domenico De Vitto) writes:
>
>Is there a any classes anywhere that allow greater presision than long double
>?
>
>Ideally one where only memory was a limit would be best.
> ...
Hmm: already calculating 1./3. would then exhaust memory.
I think that unlimited-precision _rational_ arithmetic packages
have been built for several languages (don't know about C++).
----------------------------------------------------------------------
Markku Sakkinen (sakkinen@jytko.jyu.fi)
SAKKINEN@FINJYU.bitnet (alternative network address)
Department of Computer Science and Information Systems
University of Jyvaskyla (a's with umlauts)
PL 35
SF-40351 Jyvaskyla (umlauts again)
Finland
----------------------------------------------------------------------
Re: Extended Double ?
Author: Warwick Allison
Date: Thu, 08 Oct 1992 03:01
Date: Thu, 08 Oct 1992 03:01
15 lines
905 bytes
905 bytes
ddv@unix.brighton.ac.uk (Domenico De Vitto) writes:
>Is there a any classes anywhere that allow greater presision than long double?
The class Rational in libg++ may be what you are looking for. It is built
using the libg++ class Integer (an infinite precision int).
--
Warwick
--
_-_|\ warwick@cs.uq.oz.au /Disclaimer:
/ * <-- Computer Science Department, /
\_.-._/ University of Queensland, / C references are NULL && void*
v Brisbane, Australia. /
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads