comp.lang.ada
 help / color / mirror / Atom feed
From: hebisch@math.uni.wroc.pl (Waldek Hebisch)
Subject: Re: Floating Decimal Package/Library?
Date: 17 Jul 2002 21:56:25 GMT
Date: 2002-07-17T21:56:25+00:00	[thread overview]
Message-ID: <ah4p69$50t$1@panorama.wcss.wroc.pl> (raw)
In-Reply-To: 3D2F0FAB.3000108@cogeco.ca

Warren W. Gay VE3WWG (ve3wwg@cogeco.ca) wrote:
: Since the PostgreSQL group have expressed no
: interest in supporting floating decimal
: routines for the client, I wonder if anyone
: in these groups know of an Ada package (preferred),
: or C/C++ library that supports arbitrary
: prcecision floating decimal values. I could
: hack the PostgreSQL back end C routines, but
: this may not be practical.

: The GNU GMP library comes close, but its
: floating support library uses binary
: arithmetic (this is a no-no for financial
: work). I've suggested that they augment GMP
: with this support, but I'm not sure what
: response I'll get to the request.

: I am looking for a PD/GPL/Open Sourced work.

Well, decimal floating point is an oxymoron: floating 
point is inherently inaccurate so the representation 
does not matter. What you want is fixed point arithmetic.
Fixed point is not hard to do once you have arbitrary 
precision integers (for integers again binary versus decimal 
 does not matter). For example Tiny Cobol build all its 
decimal on top of GMP. One may be concerned with 
efficency of such implementation, but I think that 
on binary machines 20-30 digit decimal arithmetic 
cannot be really fast.




--
                              Waldek Hebisch
hebisch@math.uni.wroc.pl    or hebisch@hera.math.uni.wroc.pl 



  parent reply	other threads:[~2002-07-17 21:56 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-12 17:19 Floating Decimal Package/Library? Warren W. Gay VE3WWG
2002-07-12 22:58 ` Robert Wessel
2002-07-12 23:30   ` Dann Corbit
2002-07-15 13:34     ` Warren W. Gay VE3WWG
2002-07-16  5:04       ` Robert C. Leif
2002-07-16  7:01         ` tmoran
2002-07-16 15:50           ` Robert C. Leif
2002-07-17  1:24             ` tmoran
2002-07-17  2:53               ` Robert C. Leif
2002-07-17  4:41                 ` tmoran
2002-07-17 16:30                   ` Warren W. Gay VE3WWG
2002-07-17 22:09                     ` tmoran
2002-07-29 17:05                       ` Warren W. Gay VE3WWG
2002-07-29 17:41                         ` tmoran
2002-07-30  8:58                           ` Jean-Pierre Rosen
2002-07-30 16:20                           ` John H. Lindsay
2002-07-16 16:32           ` Pascal Obry
2002-07-16 17:53           ` Warren W. Gay VE3WWG
2002-07-17  1:24             ` tmoran
2002-07-17  8:28               ` Vadim Godunko
2002-07-17 13:32                 ` Warren W. Gay VE3WWG
2002-07-22 23:33                   ` Robert I. Eachus
2002-07-23 13:16                     ` Marin David Condic
2002-07-24 15:18                       ` Darren New
2002-07-24 15:43                         ` Hyman Rosen
2002-07-24 16:17                         ` Fraser Wilson
2002-07-17 13:30               ` Warren W. Gay VE3WWG
2002-07-13 21:55 ` Björn Lundin
2002-07-15 13:37   ` Warren W. Gay VE3WWG
2002-07-17 21:56 ` Waldek Hebisch [this message]
2002-07-18 14:13   ` Robert C. Leif
2002-07-19 14:41     ` Waldek Hebisch
2002-07-19 17:29   ` Warren W. Gay VE3WWG
2002-07-19 21:50     ` Waldek Hebisch
replies disabled

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