LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Negative fractional number to Hex conversion

Hi All,

 

I am looking for a function which has to convert the fractional number to hex value and Negative fractional value to hex value.

 

Suppose if I have 0.33 fractional number I want to represent that in hex? The same way for -0.33?

 

Can anyone help me on this?

 

Regards,

Bharathi T

0 Kudos
Message 1 of 2
(2,897 Views)

A simple Type Cast will do that, and you can set the string to Hex display mode so you can see the "value" in hex. It does not matter if the number is positive or negative.

 

 

You can learn more about how numbers are stored by reading this: http://en.wikipedia.org/wiki/IEEE_754-2008

0 Kudos
Message 2 of 2
(2,894 Views)