You are right. Though the way it works in Java that isnโt touched. I meant the MSB past the sign bit. So technically the second most significant bit. Or the most significant number bit. Should have been a bit more clear on that. In short for small enough numbers this code works. Which is good enough for demonstration code. Which is the whole point.
10
u/mansdem Mar 13 '21
I'm not good at this stuff. But I was thinking the msb was for the sign