[fpc-pascal] Writing floating points to steams

Torsten Bonde Christiansen tc at epidata.info
Tue Jan 12 11:45:02 CET 2016


Hi all.

What is the best/preferred way to write floatingpoint to a steam?

Since TStream doesn't have any native WriteFloat/Double and the likes, 
some conversion is needed - but what is a good strategy for this?

A simple conversion like Stream.WriteDWord( DWord(<some float 
variable>)) is not possible due to illegal type conversion.

Any help appriciated.

Regards,
Torsten.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160112/05ccfbc3/attachment.html>


More information about the fpc-pascal mailing list