Docklight Support


FAQ Article ID dl_faq035

Question

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)

Answer

We have now added IEEE single and double precision float conversion as an experimental feature to Docklight Scripting. Please see the software link below and the related sample script. The new DL.ConvertSequenceData method might still change until the next official release and it is not yet documented. But it has been tested by us and selected customers with good success. We would be happy about any related feedback here!

Related Links

Docklight Scripting Sample Script: Decoding IEEE float with single precision (4 bytes)

Docklight Scripting V1.9.108 Download - DL.ConvertSequenceData IEEE float conversion (demo)

Docklight Examples Overview

e-mail to Docklight Technical Support


back back to the Docklight FAQ page