RFA; DFP and REAL_TYPE?

2005-03-21 Thread Jon Grimm
So I've been looking at using REAL_TYPE to represent decimal floating point values internally (to implement the C extensions for decimal floating point.) I believe David and yourself had some discussions on this some short time back. Anyway, I've now had a chance to play with this a bit, but no

Re: RFA; DFP and REAL_TYPE?

2005-03-21 Thread Mark Mitchell
Jon Grimm wrote: So I've been looking at using REAL_TYPE to represent decimal floating point values internally (to implement the C extensions for decimal floating point.) I believe David and yourself had some discussions on this some short time back. FWIW, I'd rather see you stick with REAL_TYPE

Re: RFA; DFP and REAL_TYPE?

2005-03-21 Thread Robert Dewar
Mark Mitchell wrote: What I would hope would work would be modifying real.c to (a) directly suport the decimal format for storage, and (b) update the emulation of floating-point operations to work correctly on the decimal format. I definitely agree that translating into the binary format is lik

Re: RFA; DFP and REAL_TYPE?

2005-03-21 Thread Mark Mitchell
Robert Dewar wrote: Mark Mitchell wrote: What I would hope would work would be modifying real.c to (a) directly suport the decimal format for storage, and (b) update the emulation of floating-point operations to work correctly on the decimal format. I definitely agree that translating into the

Re: RFA; DFP and REAL_TYPE?

2005-03-21 Thread Robert Dewar
Mark Mitchell wrote: I would expect that some decimal floating point values are not precisely representable in the binary format. OK, I agree that decimal floating-point needs its own format. But still you can store the decimal mantissa and decimal exponent in binary format without any problem, an

Re: RFA; DFP and REAL_TYPE?

2005-03-21 Thread Mark Mitchell
Robert Dewar wrote: Mark Mitchell wrote: I would expect that some decimal floating point values are not precisely representable in the binary format. OK, I agree that decimal floating-point needs its own format. But still you can store the decimal mantissa and decimal exponent in binary format wi

Re: RFA; DFP and REAL_TYPE?

2005-03-22 Thread Jon Grimm
Mark Mitchell wrote: Robert Dewar wrote: Mark Mitchell wrote: I would expect that some decimal floating point values are not precisely representable in the binary format. OK, I agree that decimal floating-point needs its own format. But still you can store the decimal mantissa and decimal exponen