11-05-2008 09:11 AM
HI,
I'm using the following command in a vi and would like to see an Hex presentation.
"My number is " + str(number1 + number2)
The parameters number1 and number2 are in Hex but the result of str is the value in decimal.
Is there a way to force it to show in Hex?
I have tried str((number1 + number2), "%$.13f") but it didn't work. I still get a value in decimal.
(I don't' really understand the meaning of this formatting. I saw it somewhere and thought it might do the job)
Can anybody give an explanation to this formatting?
Thanks
Rafi
Solved! Go to Solution.
11-05-2008
09:15 AM
- last edited on
07-08-2025
12:34 PM
by
Content Cleaner
The format you want is %x. The format specifiers are specified in the LabVIEW Help.