maziac / hex-hover-converter

MIT License
9 stars 3 forks source link

Negative numbers not being recognized properly #4

Closed brookescott87 closed 3 years ago

brookescott87 commented 3 years ago

It seems that negative decimal numbers are not being recognized as such, for example:

image

I expected to see the hex value EFFFFFFF here, rather than 10000001.

maziac commented 3 years ago

Actually the negative number is there but I was also confused when I tested it. The problem is that you see it on the right side but you have to scroll, i.e. see here: Bildschirmfoto 2021-04-30 um 19 24 06

But, of course, this is not a good solution. Maybe I will remove the binary conversion in this case because it makes the window too wide for large numbers.

maziac commented 3 years ago

Could you please try this pre-release: https://github.com/maziac/hex-hover-converter/releases/tag/v1.2.1

Still scrolling is required (there is little modification possible to the vscode markdown unfortunately). But I changed the order, ie. if it is a negative number it is shown in the first column.