LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display in DECIMAL a large integer

Hi,

I'm sorry to ask again the same kind of question I sent on tuesday, but
I did not raise the right problem that I had faced.

What I actually want to do is display in DECIMAL a large integer (3x16
bits).

Hexadecimal was obvious since the 16-hexadecimal-base is a multiple of
the 2-binary-base.
What if I have to turn my three binary 16 bits to a decimal integer
display !?

Thanks ! - oz
0 Kudos
Message 1 of 3
(2,641 Views)
Look example
0 Kudos
Message 2 of 3
(2,641 Views)
These 48 bits fit in a DBL that has 52 bits for the mantissa, 11 bits for the exponent and 1 for the sign.
As long as your integer fits in the mantissa it will display correctly.
You can check max values and if no overflow occurs it works.
I tested this with I16 and U16 bit integers. Take care of converting each integer to a doubel before multiplying and adding the components.
greetings from the Netherlands
0 Kudos
Message 3 of 3
(2,641 Views)