Skip to content
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

Enhancement: Improve binary display in Number bases #150

Open
MaCo117 opened this issue Jul 9, 2024 · 3 comments
Open

Enhancement: Improve binary display in Number bases #150

MaCo117 opened this issue Jul 9, 2024 · 3 comments

Comments

@MaCo117
Copy link

MaCo117 commented Jul 9, 2024

Following suggestions relate to the "Number bases" widget which displays the current result in different bases.

  1. Bit positions are usually indexed from zero. The hint positions should be 7-15-23-31 and so on. Check windows calculator, speedcrunch or similar for reference.

  2. The digits in binary display (while flippable), are tiny and with no margins, making bit flipping cumbersome. Increasing font size helps somewhat, but that badly affects the rest of the app UI. Nobody does this better than speedcrunch - high contrast, immediately readable positions, consistent digit width. It's the only thing preventing me from switching at the moment.

Either way, love the tool - fantastic job!

@hakan-demirli
Copy link

I agree with all. I would like also to add that 2's complement display would be awesome.

image

-5 is not really helpful since there is no - in binary form. A more useful output would be:
11111111111111111111111111111011
or
FFFFFFFB

@hanna-kn
Copy link
Contributor

-5 is not really helpful since there is no - in binary form. A more useful output would be:
11111111111111111111111111111011
or
FFFFFFFB

11111111111111111111111111111011 is exactly what is displayed in your screenshot (?). Two's complement representation is by default enabled for binary numbers and can be enabled for hexadecimal in preferences (where two's complement for input can also be enabled).

@hakan-demirli
Copy link

hakan-demirli commented Jul 21, 2024

My bad. I was looking for the hex version, not the binary one. All good now. Thank you for the explanation.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants