RE: [boost] Is there interest in a decimal floating-point class?

I think this is very valuable, but I really doubt boost library guidelines would allow including a wrapper over a C library, as the C library certainly would not be confirming with boost coding (and possibly licensing) standards. Perhaps you should propose your wrapper as the library interface, if you are willing to reimplement the guts later. m
-----Original Message----- From: Richard Kaiser [mailto:rk@rkaiser.de] Sent: Thursday, May 20, 2004 9:03 AM To: boost@lists.boost.org Subject: [boost] Is there interest in a decimal floating-point class?
I want to ask the boost community if there is interest in a decimal floating-point class implementing one or more of the decimal floating-point types that are intended to become part of a future C and C++ standard.
This class would be a wrapper class around Mike Cowlishaws decNumber C library. You can take a look at my first preliminary version (it is just a first try, the design is far from perfect, it is incomplete, its notation is inconsistent and not according to boost conventions) at
http://www.rkaiser.de/rkaiser/DecFPClass/DecFPClass.html
Most of its operators work as they should do, and most of Mikes testcases pass successfully. The function DecimalFloat_Testcases("d:\\cpp.boo\\decnumber\\decnumberclass \\decTest\\") in my test program test_rk reads all the testcases from Mikes decTest files and logs each testcase in a file (bcb files were created with Borland C++Builder 6, gcc with MinGW g++, and msc with MS Visual Studio ..Net). With “grep "###number" *.log” you get the summary lines:
File abs.decTest_bcb.log: ###number of tests passed=87 failed=2 File abs.decTest_gcc.log: ###number of tests passed=87 failed=2 File abs.decTest_msc.log: ###number of tests passed=87 failed=2 File add.decTest_bcb.log: ###number of tests passed=773 failed=45 File add.decTest_gcc.log: ###number of tests passed=773 failed=46 File add.decTest_msc.log: ###number of tests passed=773 failed=45 ... If the boost community is interested, if I find enough time, and if everything works as intended, the resulting classes would be a reference implementation for the new standard decimal floating point types, or at least a close one. I posted this request already some days ago, but by mistake I have posted it as a reply to a message it did not belong to. Sorry. Richard Kaiser _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.

Max Khesin <MKhesin@liquidnet.com> writes:
I think this is very valuable, but I really doubt boost library guidelines would allow including a wrapper over a C library, as the C library certainly would not be confirming with boost coding (and possibly licensing) standards. Perhaps you should propose your wrapper as the library interface, if you are willing to reimplement the guts later.
I don't think that's neccessarily a problem. Boost.Threads is "just a wrapper" over the pthreads library on some platforms. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (2)
-
David Abrahams
-
Max Khesin