In our previous episode, Torsten Bonde Christiansen said:
> What is the best/preferred way to write floatingpoint to a steam?


var d : double; // or single, avoid extended

d:=<some expression>;
stream.write(d,sizeof(d));

stream.read(d,sizeof(d));

All the stream helpers are just that.

One could add writedouble/single to the stream typehelpers in streamex.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to