I need to read a 4 byte (or: 8 byte) data sequence and convert it into a float value. How can I do this? (Or: I need to deal with 32 bit / 64 bit IEEE encoded float values. How to convert to and from such a data format?)

I need to read a 4 byte (or: 8 byte) data sequence and convert it into a float value. How can I do this? (Or: I need to deal with 32 bit / 64 bit IEEE encoded float values. How to convert to and from such a data format?)

Applies to: Docklight Scripting (all versions), Article ID: dl_faq035

We have now added IEEE single and double precision float conversion in Docklight Scripting. Please see the software link below and the Docklight Scripting User Manual documentation for “DL.ConvertSequenceData”. We would very much welcome any feedback here, especially about specific encodings and conversions that we should add.

Docklight Downloads

e-mail to Docklight Technical Support