[fpc-pascal] Writing floating points to steams

Sven Barth pascaldragon at googlemail.com
Sat Jan 16 16:30:06 CET 2016


Am 16.01.2016 10:30 schrieb "Dennis" <dec12 at avidsoft.com.hk>:
>
>
>
> Sven Barth wrote:
>>
>> >>> Should writing binary floating point to a stream note that it's IEEE
format, just in case anybody ever tries to process it on a platform that
supports alternatives?
>>
>> >>>
>> >> It would be great if storing floating point could be in IEEE, to have
a standard as reference.
>> >
>> >
>> > I'm not at all sure about this, but I think I've seen something that
suggested that byte ordering in external representations was covered by the
standard.
>>
>> I've checked recently due to big endian problems in the Castle game
engine and found out that endianess isn't really covered for floating
points...
>>
>> Regards,
>> Sven
>>
>>
> Do you imply that, unlike floating point, endianess for integers are
handled automatically by TStream?

Not at all, but it could have been that IEEE floating points are defined to
be always little endian for example.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160116/2d05b3e8/attachment.html>


More information about the fpc-pascal mailing list