New Playground: Integer.exposed
jvns.ca
jvns.ca
Depends, they could if the site gave access to common varint formats for instance.
Also can't help but think it's the wrong way around? I feel like when you play with byte order you want to see how the bits change for a given number, rather than the number for the same bits. Though I guess both are valuable, depends on your use case (whether you have a bit pattern and try to understand what it is, or have a number and try to see how it would encode).
Exploring signed representations could also be useful.
+1, as someone who is exclusive working on a big endian architecture this will be really helpful.
related but slightly tangent: I hope there is a button for toggling 2's complement.
How did I not know that after nearly 25 years of programming? I must be dumb.
The lowest negative integer is still 1000…0000, though.
1000…0000 is the minimum.
111..11111 = -1 (for Nbit) 100..00000 = -2147483648 (for 32bit)
Therefore 11...1 is smaller than 100...01? Maybe I am dumb and missing something? Can anyone help?
"style" element between "head" and "body"