-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signed (twos-complement) option #18
Comments
In the interactive mode or command-line mode ? |
Both. You only need one column for a sign in interactive mode, no? Maybe you could have two boxes for decimal/octal/hex where one is unsigned and the other signed. You don't need an extra box for base-2 representation, naturally. |
It's very uncommon to represent signed value in octal / hex / binary. |
Thanks! |
Hello :-) edit: cause I don't know how to "activate/use" it (in case it is already implemented) couldn't find a hint in the ReadMe |
It's implemented in command line mode. example:
|
and how can I pass a negative number?
doesn't work of course, as it thinks it's a parameter. and interactive mode? |
it makes little sense to add it in interactive mode as it can't be represented in hex/octal. |
Maybe I don't fully get what you mean, but in (my/the) embedded systems world the hex (and octal) values are just used as a different representation of the binary form. don't get me wrong. I love this tool, and it's already pretty useful. But don't you think that signed and even float should be interpreted too, while Hex Octal Binary representation stays the same? |
No when I rethink it it makes sense. I'll try to see where can I fit it in. |
You/we can do small steps. s to switch to signed interpretation The interactive calculator at the bottom you don't have to change for that. For float and signed some bits could be shown in a different color to highlight ... Is this too much already? Maybe I got carried away :D Anyways, awesome tool, even without changing anything. good job. I won't bother you any longer. I already talked too much. I hope I can make it work on Cygwin then I can show it my colleagues. yeah Thank you ;-) --marco |
In case it helps anyone else, there's an easy workaround for this limitation. Just formulate the number as an expression by subtracting the value from zero:
|
I've missed the earlier comment about this this is a bug. This should no pass the '-4' to the parser, but it appears that there's a bug there. I'll need to look in to it. meanwhile, I'll open a bug for it. |
Support for signed (twos-complement) numbers would be nice.
The text was updated successfully, but these errors were encountered: