I am having issues representing data in floating point format.
Here is an example:
The code above yields the following results:
Every value displayed is as expected except for single precision float. That bit array, converted to float, should be 33.5:
It appears that LabVIEW retains the decimal value of the int and converts that to float rather than the bit string, although I wasn't able to verify that for sure because I don't know how to see the bit string used for a float without converting it to int first.
How can I modify this code to generate the actual float value (33.5) of the bit string rather than the decimal value of the int represented in float form?
Solved! Go to Solution.
Instead of looking for an answer on the Conversion sub-palette, look at the "Data Manipulation" palette where you will find the Type cast.
Wire a single precision float to the top input and give that a try.