01-30-2016 10:32 PM
Hi all,
I want to show a 32bit number in hexdecimal format. In the number control, right click menu and I click into the "Display Format", I can change the format to hex. But I wonder if there is any way to show the hex number with given number of places holder. In C language, I can plot the number as
printf( "%.10x", number)
so to keep the result for total 10 places. I find an "advanced editing mode" in "Display Format" but I didn't get the "%.10x" work. Any idea?
Solved! Go to Solution.
01-30-2016 11:40 PM
Hexdecimal number are integers, so there should be no period in the format. You don't need the advanced format.
SImply set the format to hexadecimal, set a minimum field width, and pad with zeroes on the left.
02-01-2016 06:31 AM
A 32-bit number can only be represented by 8 hexidecimal digits. So I would use %08x for the format.