Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread James K Beard
Original Message- From: Kai Tietz [mailto:ktiet...@googlemail.com] Sent: Sunday, April 10, 2011 3:06 PM To: vanboxem.ru...@gmail.com; mingw-w64-public@lists.sourceforge.net Cc: jkbea...@verizon.net Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math 2011/4/10 Ruben Van B

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread James K Beard
: jkbea...@verizon.net Cc: mingw-w64-public@lists.sourceforge.net Subject: RE: [Mingw-w64-public] mingw-w64 Decimal Floating Point math Op 10 apr. 2011 19:05 schreef "James K Beard" het volgende: > > Philosophies about how compilers should be build has gone through fa

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread Kai Tietz
2011/4/10 Ruben Van Boxem : > > Op 10 apr. 2011 19:05 schreef "James K Beard" het > volgende: > >> >> Philosophies about how compilers should be build has gone through fads and >> phases.  Originally, of course, compilers were built using macro assemblers, >> and such large programs in macro assem

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread Ruben Van Boxem
-public@lists.sourceforge.net > Cc: jkbea...@verizon.net; James K Beard > > Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math > > > > Op 10 apr. 2011 08:49 schreef "Kai Tietz" het volgende: > > > > > 2011/4/10 James K Beard : > >

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread James K Beard
ril 10, 2011 9:32 AM To: mingw64 Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math Hello James and Jon! On Sat, Apr 9, 2011 at 10:58 PM, James K Beard wrote: > JonY - well, mine is in Fortran 95 structured format, with layers of classes > and derived data types.  A

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread James K Beard
jkbea...@verizon.net Cc: James K Beard; mingw-w64-public@lists.sourceforge.net; JonY Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math 2011/4/10 James K Beard : > There are better libraries than mine for 128-bit, which is quad precision, > that use 12-bit exponents; my

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread James K Beard
Tietz [mailto:ktiet...@googlemail.com] Sent: Sunday, April 10, 2011 9:22 AM To: vanboxem.ru...@gmail.com; mingw-w64-public@lists.sourceforge.net Cc: James K Beard Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math 2011/4/10 Ruben Van Boxem : > Op 10 apr. 2011 08:49 schreef &q

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread James K Beard
, April 10, 2011 8:54 AM To: mingw-w64-public@lists.sourceforge.net Cc: jkbea...@verizon.net; James K Beard Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math Op 10 apr. 2011 08:49 schreef "Kai Tietz" het volgende: > > 2011/4/10 James K Beard : > > J

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread Ruben Van Boxem
2011/4/10 Kai Tietz > 2011/4/10 Ruben Van Boxem : > > Op 10 apr. 2011 08:49 schreef "Kai Tietz" het > > volgende: > > > >> > >> 2011/4/10 James K Beard : > >> > JonY - well, mine is in Fortran 95 structured format, with layers of > >> > classes > >> > and derived data types. An experienced prog

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread K. Frank
Hello James and Jon! On Sat, Apr 9, 2011 at 10:58 PM, James K Beard wrote: > JonY - well, mine is in Fortran 95 structured format, with layers of classes > and derived data types.  An experienced programmer could port it to C++ > fairly quickly, giving you a a C++ class with overloaded arithmetic

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread Kai Tietz
2011/4/10 James K Beard : > There are better libraries than mine for 128-bit, which is quad precision, > that use 12-bit exponents; my package always uses 16-bit exponents.  Quad > precision packages use the hardware 80-bit floating point in most CPU cores > these days and would be smaller and fast

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread Kai Tietz
2011/4/10 Ruben Van Boxem : > Op 10 apr. 2011 08:49 schreef "Kai Tietz" het > volgende: > >> >> 2011/4/10 James K Beard : >> > JonY - well, mine is in Fortran 95 structured format, with layers of >> > classes >> > and derived data types.  An experienced programmer could port it to C++ >> > fairly

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread Ruben Van Boxem
Op 10 apr. 2011 08:49 schreef "Kai Tietz" het volgende: > > 2011/4/10 James K Beard : > > JonY - well, mine is in Fortran 95 structured format, with layers of classes > > and derived data types. An experienced programmer could port it to C++ > > fairly quickly, giving you a a C++ class with overl

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-10 Thread James K Beard
Beard; JonY Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math 2011/4/10 James K Beard : > JonY - well, mine is in Fortran 95 structured format, with layers of classes > and derived data types.  An experienced programmer could port it to C++ > fairly quickly, giving

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread Kai Tietz
2011/4/10 James K Beard : > JonY - well, mine is in Fortran 95 structured format, with layers of classes > and derived data types.  An experienced programmer could port it to C++ > fairly quickly, giving you a a C++ class with overloaded arithmetic and > casting/data conversion operations.  But I'm

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread James K Beard
] mingw-w64 Decimal Floating Point math -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/10/2011 01:54, James K Beard wrote: > I think the long term solution is to implement the decimal arithmetic > keywords with an open mind. Special requirements, like extremely long > decimal words (D

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread James K Beard
s.sourceforge.net Cc: James K Beard Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/10/2011 01:54, James K Beard wrote: > I think the long term solution is to implement the decimal arithmetic > keywords with an open m

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread James K Beard
: [Mingw-w64-public] mingw-w64 Decimal Floating Point math > Hi, > > Sorry for jumping into this discussion, but I don't seem to understand what > the advantage is of a non-hardware supported real number representation. If > you need the two (or a bit more) decimal places require

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread JonY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/10/2011 01:54, James K Beard wrote: > I think the long term solution is to implement the decimal arithmetic > keywords with an open mind. Special requirements, like extremely long > decimal words (DECIMAL128 == 128 digits?) may require multip

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread dashesy
> Hi, > > Sorry for jumping into this discussion, but I don't seem to understand what > the advantage is of a non-hardware supported real number representation. If > you need the two (or a bit more) decimal places required for currency and > percentages, why not just use a big integer and for displ

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread James K Beard
Sent: Saturday, April 09, 2011 1:08 PM To: mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/9/2011 23:03, K. Frank wrote: > > What, then, would be the advantage of using decima

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread JonY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/9/2011 23:03, K. Frank wrote: > > What, then, would be the advantage of using decimal floating-point? > I don't really know the history or what people were thinking when > they built those early decimal floating-point systems, but there is > a (m

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread James K Beard
and built-in support of business calculations like present value, sinking fund computations, etc. James K Beard -Original Message- From: NightStrike [mailto:nightstr...@gmail.com] Sent: Saturday, April 09, 2011 2:41 AM To: jkbea...@verizon.net; mingw-w64-public@lists.sourceforge.net Cc: Jam

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread K. Frank
Hi Jon and Ruben! On Sat, Apr 9, 2011 at 9:47 AM, JonY wrote: > ... > On 4/9/2011 21:33, Ruben Van Boxem wrote: >> Hi, >> >> Sorry for jumping into this discussion, but I don't seem to understand what >> the advantage is of a non-hardware supported real number representation. If >> you need the t

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread JonY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/9/2011 21:33, Ruben Van Boxem wrote: > Hi, > > Sorry for jumping into this discussion, but I don't seem to understand what > the advantage is of a non-hardware supported real number representation. If > you need the two (or a bit more) decimal pl

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread Ruben Van Boxem
Hi, Sorry for jumping into this discussion, but I don't seem to understand what the advantage is of a non-hardware supported real number representation. If you need the two (or a bit more) decimal places required for currency and percentages, why not just use a big integer and for display divide b

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread K. Frank
Hello NightStrike! On Sat, Apr 9, 2011 at 2:41 AM, NightStrike wrote: > On Sun, Apr 3, 2011 at 7:07 AM, James K Beard wrote: >> A quick glance through the document seems to tell us that the decimal >> arithmetic will incorporate checks to ensure that any rounding in binary >> floating point does

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-09 Thread Antoni Jaume
2011/4/9 NightStrike > > I'm being a little OT here, but I'm curious.. does that mean that > COBOL was a language that gave very high accuracy compared to C of the > day? > > Cobol is quite anterior to C. It is not so much that it has high accuracy as it avoids decimal to binary and binary to dec

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-08 Thread NightStrike
On Sun, Apr 3, 2011 at 7:07 AM, James K Beard wrote: > A quick glance through the document seems to tell us that the decimal > arithmetic will incorporate checks to ensure that any rounding in binary > floating point does not compromise the accuracy of the final decimal > result.  That’s pretty mu

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-03 Thread James K Beard
, 2011 9:25 PM To: jkbea...@verizon.net; mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/3/2011 22:07, James K Beard wrote: > A quick glance through the document seems to tell us that

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-03 Thread JonY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/3/2011 22:07, James K Beard wrote: > A quick glance through the document seems to tell us that the decimal > arithmetic will incorporate checks to ensure that any rounding in binary > floating point does not compromise the accuracy of the final

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-03 Thread James K Beard
: Jim Michaels [mailto:jmich...@yahoo.com] Sent: Sunday, April 03, 2011 2:06 AM To: mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math take a gander at this decimal floating point math is possibly coming to TR2. http://www.open

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-04-02 Thread Jim Michaels
:09 AM Subject: RE: [Mingw-w64-public] mingw-w64 Decimal Floating Point math If the mantissa has at least seven or eight bits below the binary point, equivalence to the cents level is achieved by |x-y| < 0.005; the half-cent is x’0.0147ae’ which can be done in any decent language. If you do

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-26 Thread James K Beard
or something like that, etc. fp is NOT for comparison ops. decimal you can. _ From: James K Beard To: JonY ; Kai Tietz Cc: mingw-w64-public@lists.sourceforge.net Sent: Wed, March 23, 2011 10:40:30 PM Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math It may no

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-25 Thread Jim Michaels
n ops. decimal you can. From: James K Beard To: JonY ; Kai Tietz Cc: mingw-w64-public@lists.sourceforge.net Sent: Wed, March 23, 2011 10:40:30 PM Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math It may not be as bad as you might think be

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread James K Beard
- From: Jon [mailto:10wa...@gmail.com] On Behalf Of JonY Sent: Wednesday, March 23, 2011 9:20 PM To: Kai Tietz Cc: jkbea...@verizon.net; mingw-w64-public@lists.sourceforge.net; James K Beard Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math -BEGIN PGP SIGNED MESSAGE- Hash

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread JonY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/24/2011 02:29, Kai Tietz wrote: > 2011/3/23 James K Beard : >> You don't need to go to BCD to convert DFP to IEEE (regular) floating point. >> A single arithmetic operation directly in DFP will exceed what you do to >> convert to IEEE floating poi

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread K. Frank
--Original Message- > From: K. Frank [mailto:kfrank2...@gmail.com] > Sent: Wednesday, March 23, 2011 2:49 PM > To: mingw64 > Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math > > Hi Jon and James! > > On Wed, Mar 23, 2011 at 12:45 PM, JonY wrote: >>

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread James K Beard
ffort needed to write and test these libraries. James K Beard -Original Message- From: K. Frank [mailto:kfrank2...@gmail.com] Sent: Wednesday, March 23, 2011 2:49 PM To: mingw64 Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math Hi Jon and James! On Wed, Mar 23, 2

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread James K Beard
mes K Beard; JonY Subject: Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math 2011/3/23 James K Beard : > You don't need to go to BCD to convert DFP to IEEE (regular) floating point. > A single arithmetic operation directly in DFP will exceed what you do to > convert to IEEE

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread K. Frank
Hi Jon and James! On Wed, Mar 23, 2011 at 12:45 PM, JonY wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 3/23/2011 22:06, James K Beard wrote: >> Jon:  The simplest and quite possibly the most efficient way to implement a >> standard function library in BCD decimal arithmetic is t

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread Kai Tietz
2011/3/23 James K Beard : > You don't need to go to BCD to convert DFP to IEEE (regular) floating point. > A single arithmetic operation directly in DFP will exceed what you do to > convert to IEEE floating point.  I would use double precision for anything > up to 12 decimals of accuracy, 80-bit fo

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread James K Beard
You don't need to go to BCD to convert DFP to IEEE (regular) floating point. A single arithmetic operation directly in DFP will exceed what you do to convert to IEEE floating point. I would use double precision for anything up to 12 decimals of accuracy, 80-bit for another three, and simply incorp

Re: [Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread JonY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/23/2011 22:06, James K Beard wrote: > Jon: The simplest and quite possibly the most efficient way to implement a > standard function library in BCD decimal arithmetic is to convert to IEEE > standard double precision (or, if necessary, quad preci

[Mingw-w64-public] mingw-w64 Decimal Floating Point math

2011-03-23 Thread JonY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm working on DFP math for mingw-w64, the main hurdle is that the mathematical values should never be converted to conventional floating point. Dr Beard, I'm hoping you can help me out on this task in the future. I have some documentation o