Qalculate / qalculate-qt

GNU General Public License v2.0
358 stars 41 forks source link

Enhancement: Improve binary display in Number bases #150

Open MaCo117 opened 2 months ago

MaCo117 commented 2 months ago

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 commented 1 month ago

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 commented 1 month ago

-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 commented 1 month ago

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