LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
ouadji

Be able to view the minus sign for negative non-decimal formatted numbers

Status: New

 

be able to choice the "minus sign" for the negative non-decimal numbers

 

            i'm only talking about the way that an indicator can display a number.

 

                                                  like this,

 

                     demo.png

 

minus.png

15 Comments
JLewis
Member

The current design for the non-decimal radix formats assumes the user needs to see the actual implementation bit pattern, so its whole purpose is to expose that information in a more human-readable fashion (and we could certainly make  a couple further improvements in that direction).

 

The human readability you're asking for is a different use case, so more detail on some situations where you need to see hex that is not directly describing the underlying bit pattern would be helpful (sorry, I didn't get much out of the French thread--maybe that has the answer). I agree that -2A is more readable than FFFFFFD6, but in what situations is that superior to the options you get from -42 (most readable) or FFFFFFD6 (most explicit)?

 

For sign-magnitude representations like floating-point, this would definitely be nice, but for 2s complement values we need some more background info, apparently from the mathematicians and Python users.

ouadji
Trusted Enthusiast

It is too bad that i can't answer with the same ease that i could do it in french.
I regret deeply not owning fully the knowledge of English.  Smiley Frustrated

 

@ AristosQueue:
So, ouadji's request is not unreasonable.   thank you for your help.   Smiley Wink

but ... it would affect such a small slice of LV users that ...  indeed, your are right, i agree.

 

... Just use a string control and If value is negative, append negative sign, then append the absolute value of the integer as hex ...

yes, of course, no problem to do that.
This solution has already been discussed (and solved) on the French forum

 

@ JLewis :

I agree that -2A is more readable than FFFFFFD6,

but in what situations is that superior to the options you get from -42   good point, i agree.

 

Thank you all.

ouadji
Trusted Enthusiast
ToeCutter
Active Participant
The point of hex is that it's easily related to the underlying bits, in that each hex digit represent a nibble (4 consecutive bits). Once you bring in a minus sign, the relation is not so simple so it kind of defeats the point IMO.
AristosQueue (NI)
NI Employee (retired)

ToeCutter: That's the point of hex *for programmers*, not for mathematicians. You think bringing in the - sign is bad... try sigmas and integration marks, all in hex... there's a proof I saw in college of some number theorem that was "easier" to solve in hex. I've also seen a geometry proof that was worked out in base sixty.