Open nmggithub opened 1 year ago
Can you specify the specific input for which the output is wrong?
I listed an example in my original message.
If you type out 0x2400
in little-endian mode and mouse over it, the hover card does not say the decimal value is 36
. It should say the decimal value is 36
.
Actually the endianness applies only to output. The input is always treated as a number expressed in some numeral system, not as a series of bytes. I see the separators in hex/bin I added some time ago may be misleading so I'll remove them.
I actually do find the separators possibly quite useful? Perhaps just a note somewhere that mentions that the endianess only applies to the output might suffice.
Hello!
It appears the endianness setting is used backwards.
For example, storing the decimal number
36
in two bytes would be:little-endian:
0x2400
big-endian:0x0024
However, in big-endian mode, only the little-endian value is read correctly, and visa versa.
EDIT: note, this does happen with the binary representations as well.