[fpc-pascal]How to convert between double and extended?

Jonas Maebe jonas at zeus.ugent.be
Sun Aug 15 00:11:16 CEST 2004


On 14 aug 2004, at 19:34, Mattias Gaertner wrote:

> How can I convert between PowerPC double and i386 Extended on a 
> powerpc?
> For example: I want to save a Double under powerpc to a stream as i386
> Extended and read it under i386 as Extended.
>
> Are there already some conversion functions to convert between the 
> various
> floating point formats?

No, only a function to convert a TP real to double (real2double). Also, 
on the ppc extended is defined as double (for source code 
compatibility), so we'll have to use a record or so.


Jonas





More information about the fpc-pascal mailing list