Hello Jav
Jav wrote:
> hi... I´m creating a program... and I want to convert my decimal
> numbers in hex numbers, but with the same number.. for example... I
> need trasform 149(dec) in
> 149(hex)... I know that 149 dec is equivalent to 95 hex.. but I need
> transform any number dec.. in the same hex.. 138dec to 138 hex.......
> thanks..
The method I'd chose would be over a string-conversion.
Use the "To Decimal" Function to convert the Number to a String and feed
this string to a "From Hexadecimal". This will interpret the decimal
sting as hexadecimal, which is just waht you want.
you can get an example from
http://www.marco.tedaldi.net/labview/vis/
(dec_hex.vi it's labvie 4.1 which should automatically get converted to
your version).
I think it isn't
very fast. So, if you're using the conversion for much
data or in a tight loop, you should try another way with some math
("Quotient & Reminder" could help).
bye
Marco