From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,7cda96e9413b780c X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,7cda96e9413b780c X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,7cda96e9413b780c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-12 16:52:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2 From: "Dann Corbit" Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Subject: Re: Floating Decimal Package/Library? Date: Fri, 12 Jul 2002 16:30:32 -0700 Organization: http://extra.newsguy.com Message-ID: References: <3D2F0FAB.3000108@cogeco.ca> NNTP-Posting-Host: p-748.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:27034 comp.lang.c:138249 comp.lang.c++:158908 Date: 2002-07-12T16:30:32-07:00 List-Id: "Robert Wessel" wrote in message news:bea2590e.0207121458.1bf92f6d@posting.google.com... > "Warren W. Gay VE3WWG" wrote in message news:<3D2F0FAB.3000108@cogeco.ca>... > > 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. > > You may be able to find something from here: > > http://www2.hursley.ibm.com/decimal/ > > The decNumber package looks like it might meet your requirements, > although I don't know how it's licensed: > > http://www.alphaworks.ibm.com/tech/decNumber The numeric type of PostgreSQL supports thousands of digits and is decimal rather than binary. http://www.postgresql.org/idocs/index.php?datatype.html#DATATYPE-NUMERIC Have you tried news:mailing.database.postgresql-novice ? I think you must have never bothered to read the documentation. In case that still does not do it for you, there are bazillions of arbitrary precision packages around. A web search or a gander at the C faq will reveal a boatload of them. -- C-FAQ: http://www.eskimo.com/~scs/C-faq/top.html "The C-FAQ Book" ISBN 0-201-84519-9 C.A.P. FAQ: ftp://cap.connx.com/pub/Chess%20Analysis%20Project%20FAQ.htm