LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert fractional decimal number to hex number?

Hi,

Can any one help me to convert the fractional decimal number to its equivalent hex number and vice versa ?

if u have any code please share.

 

thanks

neethu

0 Kudos
Message 1 of 4
(4,077 Views)

GerdW came up with a nice little VI for decimal fraction to hex fraction here.

---
CLA
Message 2 of 4
(4,067 Views)

Captured001.png

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 4
(4,032 Views)

neethukk wrote:

Can any one help me to convert the fractional decimal number to its equivalent hex number and vice versa ?

if u have any code please share.


This question is not clear at all.

  • "Fractional decimal" is not a data type, but a way of formatting in readable form using numeric characters and a decimal separator.
  • Same to "hex number", but only for integers.
  • What do you mean by "convert"? Do you want to keep the value the same or retain the bit pattern of the numeric data type?
  • Hexadecimal is for integers. Are you talking about fixed point?

We clearly need significantly more information. What are the input and output data types? What are you actually trying to do?

 

Do you have an example input and corresponding output?

0 Kudos
Message 4 of 4
(4,002 Views)