[fpc-pascal]Re: How to convert between double and extended? (Mattias Gaertner)
F.Klaempfl at gmx.de
Sun Aug 15 12:27:10 CEST 2004
Mattias Gaertner wrote:
>>I suggest to reverse the byte at the PPC side, and to "stream" the
>>doubles to the i386 box, and to assign the double there to an extended
>>variable. In this case there is no need for a special conversion
>>routine between double and extended since this is handled by the math
> The problem is a binary stream format coming from the i386 object pascal
> world, using extended and single, but no doubles. So I must be able to
> create and read i386 10 bytes extended. It's ok to loose some precision.
Shall I write some code?
More information about the fpc-pascal