11-11-2013 06:59 AM
I have a requirement to display a fixed point value (unsigned 20bit value) in hex format. At present when I set the numeric indicator to display this I get a "x2^0" string attached to the end.
What is this and is there anyway of turning it off?
I am trying to give a display that replicated some old style hex mechanical switches, by selecting a fixed size font and limiting the display to only be big enough to display the five hex digits (minimum field length 5 with pad with zeros) I get almost what I want (the "X2^0" is hidden of right hand side)
However when I delete characters from the number (to say enter a new number) the "X2^0" part then shows. See attached jpg which shows the format string.
This is by no means a show stopper but just annoying, is there some where to turn this formatting string off?
Dave.
11-11-2013 07:07 AM
It is showing how many of those bits are for the decimal places. It is kind of important information.
But since you are dealing with an Unsigned Integer (20,20 means there is no fractional part), why not just use a U32. You can set the display of the indicator for that to be %05x to just display the lower 5 hex characters.