Conversion from Hex to Float in LabVIEW

Updated Sep 18, 2018

Reported In

Software

  • LabVIEW

Issue Details

How do I convert hex to float in LabVIEW?

Solution

The image and explanation below, shows how to convert hex to float:
 
  1. Connect your string "3F7851EC" to "Hexadecimal String To Number" function, leave the all inputs, except string, unwired. You'll get U32 number.
  2. Use "TypeCast" to convert the U32 number to "SGL" LabVIEW type. You'll get 0,97 in a single float numeric indicator.

Additional Information

This is all described in IEEE floating point numbers format standard, 
and LabVIEW strictly follows it making the all conversions for you.

WAS THIS ARTICLE HELPFUL?

Not Helpful